gunicorn-multi/gunicorn-multi@.service

15 lines
418 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
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
[Install]
WantedBy=multi-user.target