2021-03-15 01:36:28 +01:00
|
|
|
[Unit]
|
|
|
|
Description=GPodder-celery
|
2021-04-27 22:37:37 +02:00
|
|
|
After=network.target postgresql.service redis.service __APP__.socket
|
2021-03-15 01:36:28 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2024-03-04 12:04:56 +01:00
|
|
|
WorkingDirectory=__INSTALL_DIR__
|
2021-03-15 01:36:28 +01:00
|
|
|
|
2024-03-04 12:04:56 +01:00
|
|
|
ExecStart=__INSTALL_DIR__/venv/bin/envdir __INSTALL_DIR__/envs/prod __INSTALL_DIR__/venv/bin/celery -A __APP__ worker -l info -Ofair
|
2021-03-15 01:36:28 +01:00
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
|
|
Restart=on-failure
|
|
|
|
KillMode=mixed
|
|
|
|
TimeoutStopSec=5
|
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|