mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-05-29 07:24:01 +08:00
26 lines
948 B
Desktop File
Vendored
26 lines
948 B
Desktop File
Vendored
[Unit]
|
|
Description=Celery Service (Weblate)
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=weblate
|
|
Group=weblate
|
|
EnvironmentFile=/etc/default/celery-weblate
|
|
WorkingDirectory=/home/weblate
|
|
PermissionsStartOnly=true
|
|
ExecStartPre=/bin/mkdir -p /var/run/celery
|
|
ExecStartPre=/bin/chown -R weblate /var/run/celery/
|
|
ExecStartPre=/bin/mkdir -p /var/log/celery
|
|
ExecStartPre=/bin/chown -R weblate /var/log/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
|