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