Add +EnvironmentFile

This commit is contained in:
Peter J. Holzer 2023-09-28 12:02:18 +02:00
parent 896e123f71
commit 28d069b0b2
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ After=network.target nss-lookup.target network-online.target nss-user-lookup.tar
[Service] [Service]
Type=simple Type=simple
WorkingDirectory=/usr/local/www/%i/app WorkingDirectory=/usr/local/www/%i/app
EnvironmentFile=-/usr/local/www/%i/config/gunicorn/env
ExecStart=/usr/local/www/%i/app/venv/bin/gunicorn -c /usr/local/www/%i/config/gunicorn/gunicorn.conf.py ExecStart=/usr/local/www/%i/app/venv/bin/gunicorn -c /usr/local/www/%i/config/gunicorn/gunicorn.conf.py
Restart=on-failure Restart=on-failure
RestartSec=10 RestartSec=10