2021-08-01 15:11:46 +02:00
|
|
|
[Unit]
|
2023-09-28 12:00:36 +02:00
|
|
|
Description=Gunicorn server for %i
|
2021-08-01 15:11:46 +02:00
|
|
|
After=network.target nss-lookup.target network-online.target nss-user-lookup.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2023-09-28 12:00:36 +02:00
|
|
|
WorkingDirectory=/usr/local/www/%i/app
|
2023-09-28 12:02:18 +02:00
|
|
|
EnvironmentFile=-/usr/local/www/%i/config/gunicorn/env
|
2023-09-28 12:00:36 +02:00
|
|
|
ExecStart=/usr/local/www/%i/app/venv/bin/gunicorn -c /usr/local/www/%i/config/gunicorn/gunicorn.conf.py
|
2021-08-01 15:11:46 +02:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=10
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|