Compare commits

...

2 Commits

Author SHA1 Message Date
Peter J. Holzer 28d069b0b2 Add +EnvironmentFile 2023-09-28 12:02:18 +02:00
Peter J. Holzer 896e123f71 Use %i instead of %I
The template argument is (part of) a domain name, not a path, so it
makes no sense to convert - into /. Just use it as specified.
2023-09-28 12:00:36 +02:00
1 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,12 @@
[Unit]
Description=Gunicorn server for %I
Description=Gunicorn server for %i
After=network.target nss-lookup.target network-online.target nss-user-lookup.target
[Service]
Type=simple
WorkingDirectory=/usr/local/www/%I/app
ExecStart=/usr/local/www/%I/app/venv/bin/gunicorn -c /usr/local/www/%I/config/gunicorn/gunicorn.conf.py
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
Restart=on-failure
RestartSec=10