mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
24 lines
No EOL
812 B
Desktop File
24 lines
No EOL
812 B
Desktop File
[Unit]
|
|
Description=Celery Service (__APP__)
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=__APP__
|
|
Group=__APP__
|
|
EnvironmentFile=__FINALPATH__/celery-weblate
|
|
WorkingDirectory=__FINALPATH__/
|
|
RuntimeDirectory=__APP__
|
|
RuntimeDirectoryPreserve=restart
|
|
LogsDirectory=celery
|
|
ExecStart=/bin/sh -c '${CELERY_BIN} multi start ${CELERYD_NODES} \
|
|
-A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \
|
|
--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} \
|
|
-A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \
|
|
--logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |