diff --git a/webhooks/webhook.service b/webhooks/webhook.service index 66a1365..bfd6ccc 100644 --- a/webhooks/webhook.service +++ b/webhooks/webhook.service @@ -7,7 +7,7 @@ PIDFile=/run/gunicorn/yunohost_apps_webhooks-pid User=yunohost_apps_webhooks Group=yunohost_apps_webhooks WorkingDirectory=__PATH_TO_APPS_TOOLS__/webhooks -ExecStart=__PATH_TO_APPS_TOOLS__/webhooks/venv/bin/gunicorn -w 4 -b 127.0.0.1:8123 webhook:app +ExecStart=__PATH_TO_APPS_TOOLS__/webhooks/venv/bin/python3 webhook.py ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s TERM $MAINPID PrivateTmp=true