Skip to content

Commit

Permalink
fix systemd example file (fixes celery#2131)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthru committed Apr 22, 2016
1 parent 04aa0e9 commit 0f0c930
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions extra/systemd/celery.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ Type=forking
User=celery
Group=celery
EnvironmentFile=-/etc/conf.d/celery
WorkingDirectory=/opt/myproject/
ExecStart=${CELERY_BIN} multi start $CELERYD_NODES -A \
$CELERY_APP -logfile=${CELERYD_LOG_FILE} \
--pidfile=${CELERYD_PID_FILE} $CELERYD_OPTS
ExecStop=${CELERY_BIN} multi stopwait $CELERYD_NODES \
--pidfile=${CELERYD_PID_FILE}
ExecReload=${CELERY_BIN} multi restart $CELERYD_NODES -A \
$CELERY_APP --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} \
--loglevel="${CELERYD_LOG_LEVEL}" $CELERYD_OPTS
ExecStart=/bin/sh '${CELERY_BIN} multi start $CELERYD_NODES \
-A $CELERY_APP --logfile=${CELERYD_LOG_FILE} \
--pidfile=${CELERYD_PID_FILE} $CELERYD_OPTS'
ExecStop=/bin/sh '${CELERY_BIN} multi stopwait $CELERYD_NODES \
--pidfile=${CELERYD_PID_FILE}'
ExecReload=/bin/sh '${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

0 comments on commit 0f0c930

Please sign in to comment.