15 lines
431 B
Desktop File
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
|