systemd's environment-file parser is stricter than python-dotenv: it does not accept spaces around '=' and handles quoting differently. A real .env with 'LLM_MODEL =' produces a key with a trailing space, which then reads as unset — the service starts and fails later on a missing model rather than at startup. The app already loads .env itself via python-dotenv, resolved against WorkingDirectory, so the directive was redundant as well as harmful. Found while cutting rixdagen.se over; the predecessor's unit carried a comment warning about exactly this, which the generated example had dropped. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> EOFmain
parent
dbbc264a0a
commit
5093bda314
1 changed files with 5 additions and 1 deletions
Loading…
Reference in new issue