Mercurial > p > roundup > code
diff scripts/systemd.gunicorn @ 6344:c63df349f319
issue2551117 - add example systemd config
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 15 Mar 2021 14:18:00 -0400 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/systemd.gunicorn Mon Mar 15 14:18:00 2021 -0400 @@ -0,0 +1,16 @@ +[Unit] +Description=Roundup Server - roundup + +[Service] +User=roundup +WorkingDirectory=/path/to/roundup/trackers/roundup +SyslogIdentifier=roundup-server-roundup +ExecStart=/path/to/gunicorn -b unix:///var/run/roundup/roundup.sock wsgi -w 4 --preload --max-requests 128 --max-requests-jitter 32 --timeout 60 --graceful-timeout 60 --access-logfile - --error-logfile +ExecReload=/bin/kill -HUP $MAINPID +ExecStop = /bin/kill -s TERM $MAINPID +KillMode=mixed +Restart=on-failure +RestartSec=15s + +[Install] +WantedBy=multi-user.target
