gunicorn-multi/gunicorn-multi@.service

14 lines
363 B
SYSTEMD
Raw Normal View History

2021-08-01 15:11:46 +02:00
[Unit]
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
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
2021-08-01 15:11:46 +02:00
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target