2017-09-05 17:47:31 +02:00
|
|
|
[Unit]
|
2021-03-15 01:36:28 +01:00
|
|
|
Description=GPodder
|
2021-04-27 22:37:37 +02:00
|
|
|
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__
|
2024-03-04 20:50:00 +01:00
|
|
|
WorkingDirectory=__INSTALL_DIR__/sources/
|
2021-03-15 01:36:28 +01:00
|
|
|
|
2024-03-04 20:50:00 +01:00
|
|
|
ExecStart=__INSTALL_DIR__/venv/bin/envdir __INSTALL_DIR__/envs/prod __INSTALL_DIR__/venv/bin/gunicorn -c __INSTALL_DIR__/sources/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]
|
2022-02-02 21:42:33 +01:00
|
|
|
WantedBy=multi-user.target
|