25 lines
857 B
Desktop File
25 lines
857 B
Desktop File
[Unit]
|
|
Description=Celery Service
|
|
After=network.target
|
|
Requires=redis.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=poizon
|
|
Group=poizon
|
|
EnvironmentFile=/etc/default/celery
|
|
WorkingDirectory=/var/www/phzhik-poizonstore
|
|
RuntimeDirectory=celery
|
|
ExecStart=/bin/sh -c '${CELERY_BIN} -A $CELERY_APP multi start $CELERYD_NODES \
|
|
--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} --logfile=${CELERYD_LOG_FILE} \
|
|
--loglevel="${CELERYD_LOG_LEVEL}"'
|
|
ExecReload=/bin/sh -c '${CELERY_BIN} -A $CELERY_APP multi restart $CELERYD_NODES \
|
|
--pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} \
|
|
--loglevel="${CELERYD_LOG_LEVEL}" $CELERYD_OPTS'
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |