mirror of
https://github.com/YunoHost-Apps/coin_ynh.git
synced 2024-09-03 18:16:26 +02:00
17 lines
402 B
SYSTEMD
17 lines
402 B
SYSTEMD
|
[Unit]
|
||
|
Description=__APP__ gunicorn daemon
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
PIDFile=/run/gunicorn/__APP__-pid
|
||
|
User=__APP__
|
||
|
Group=__APP__
|
||
|
WorkingDirectory=__FINALPATH__/
|
||
|
ExecStart=__FINALPATH__/venv/bin/gunicorn -c __FINALPATH__/gunicorn_config.py __APP__.wsgi
|
||
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||
|
ExecStop=/bin/kill -s TERM $MAINPID
|
||
|
PrivateTmp=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|