2018-10-19 23:28:40 +02:00
|
|
|
[Unit]
|
2020-10-28 12:02:15 +01:00
|
|
|
Description=Celery Service (__APP__)
|
2018-10-19 23:28:40 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
User=__APP__
|
2020-10-28 12:02:15 +01:00
|
|
|
Group=__APP__
|
2024-01-17 14:07:41 +01:00
|
|
|
EnvironmentFile=__INSTALL_DIR__/celery-weblate
|
|
|
|
WorkingDirectory=__INSTALL_DIR__/
|
2019-08-28 00:09:23 +02:00
|
|
|
RuntimeDirectory=__APP__
|
2020-10-28 12:02:15 +01:00
|
|
|
RuntimeDirectoryPreserve=restart
|
|
|
|
LogsDirectory=celery
|
2019-08-30 22:21:30 +02:00
|
|
|
ExecStart=/bin/sh -c '${CELERY_BIN} multi start ${CELERYD_NODES} \
|
2018-10-19 23:28:40 +02:00
|
|
|
-A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \
|
2019-08-30 22:21:30 +02:00
|
|
|
--logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'
|
|
|
|
ExecStop=/bin/sh -c '${CELERY_BIN} multi stopwait ${CELERYD_NODES} \
|
|
|
|
--pidfile=${CELERYD_PID_FILE}'
|
|
|
|
ExecReload=/bin/sh -c '${CELERY_BIN} multi restart ${CELERYD_NODES} \
|
2018-10-19 23:28:40 +02:00
|
|
|
-A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \
|
2019-08-30 22:21:30 +02:00
|
|
|
--logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'
|
2018-10-19 23:28:40 +02:00
|
|
|
|
|
|
|
[Install]
|
2020-10-28 12:02:15 +01:00
|
|
|
WantedBy=multi-user.target
|