1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mygpo_ynh.git synced 2024-09-03 19:55:52 +02:00
mygpo_ynh/conf/systemd.service

21 lines
575 B
SYSTEMD
Raw Normal View History

2017-09-05 17:47:31 +02:00
[Unit]
2021-03-15 01:36:28 +01:00
Description=GPodder
After=network.target postgresql.service nginx.service redis.service __APP__-celery.service __APP__-beat.service
Requires=__APP__.socket
2021-03-15 01:36:28 +01:00
2017-09-05 17:47:31 +02:00
[Service]
2021-03-15 01:36:28 +01:00
Type=notify
2017-09-05 17:47:31 +02:00
User=__APP__
Group=__APP__
2021-03-15 01:36:28 +01:00
WorkingDirectory=__FINALPATH__
2021-03-21 02:06:29 +01:00
ExecStart=__FINALPATH__/venv/bin/envdir __FINALPATH__/envs/prod __FINALPATH__/venv/bin/gunicorn -c __FINALPATH__/conf/gunicorn.conf.py mygpo.wsgi:application --bind unix:/run/__APP__.sock
2021-03-15 01:36:28 +01:00
ExecReload=/bin/kill -s HUP $MAINPID
Restart=on-failure
KillMode=mixed
TimeoutStopSec=5
PrivateTmp=true
2017-09-05 17:47:31 +02:00
[Install]
2021-03-15 01:36:28 +01:00
WantedBy=multi-user.target