2024-06-01 09:56:18 +02:00
|
|
|
[Unit]
|
2024-06-01 10:26:23 +02:00
|
|
|
Description=Github webhooks for YunoHost-Apps management
|
2024-06-01 09:56:18 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2024-06-01 10:26:23 +02:00
|
|
|
PIDFile=/run/gunicorn/yunohost_apps_webhooks-pid
|
|
|
|
User=yunohost_apps_webhooks
|
|
|
|
Group=yunohost_apps_webhooks
|
2024-06-01 09:56:18 +02:00
|
|
|
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
|
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
|
|
ExecStop=/bin/kill -s TERM $MAINPID
|
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|