mirror of
https://github.com/YunoHost-Apps/mygpo_ynh.git
synced 2024-09-03 19:55:52 +02:00
20 lines
438 B
SYSTEMD
20 lines
438 B
SYSTEMD
|
[Unit]
|
||
|
Description=GPodder-celery
|
||
|
After=network.target postgresql.service redis.service
|
||
|
|
||
|
|
||
|
[Service]
|
||
|
Type=basic
|
||
|
User=__APP__
|
||
|
Group=__APP__
|
||
|
WorkingDirectory=__FINALPATH__
|
||
|
|
||
|
ExecStart=__FINALPATH__/venv/bin/envdir __FINALPATH__/envs/prod __FINALPATH__/venv/bin/celery -A __APP__ worker -l info -Ofair
|
||
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||
|
Restart=on-failure
|
||
|
KillMode=mixed
|
||
|
TimeoutStopSec=5
|
||
|
PrivateTmp=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|