gunicorn-multi/gunicorn-multi@.service

14 lines
363 B
SYSTEMD

[Unit]
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
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target