2021-05-21 18:14:58 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Auto-README webhook gunicorn daemon
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
PIDFile=/run/gunicorn/autoreadme_webhook-pid
|
|
|
|
User=autoreadme_webhook
|
|
|
|
Group=autoreadme_webhook
|
|
|
|
WorkingDirectory=__PATH_TO_README_GENERATOR__
|
2021-05-21 20:12:00 +02:00
|
|
|
ExecStart=__PATH_TO_README_GENERATOR__/venv/bin/gunicorn -w 4 -b 127.0.0.1:8123 webhook:app
|
2021-05-21 18:14:58 +02:00
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
|
|
ExecStop=/bin/kill -s TERM $MAINPID
|
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|