Sebastien Laithier 31fa8f3e9c Refactor
2022-08-18 10:19:10 +02:00

15 lines
431 B
Desktop File

[Unit]
Description=gunicorn daemon
After=network.target
[Service]
User=www-updash
Group=www-data
WorkingDirectory=<PROJECT PATH>
ExecStart=<VIRTUAL ENV PATH>/bin/gunicorn --workers 3 --timeout 300 --error-logfile <LOG PATH>/gunicorn.log --bind unix:<PROJECT PATH>updatesdashboard.sock updatesdashboard.wsgi:application
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
[Install]
WantedBy=multi-user.target