Skip to content

Commit

Permalink
Synchronizes celerybeat and celeryd scripts.
Browse files Browse the repository at this point in the history
Closes celery#549.
  • Loading branch information
streeter authored and ask committed Nov 25, 2011
1 parent a2f591d commit 912812d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions contrib/generic-init.d/celerybeat
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,15 @@ if [ -n "$CELERYBEAT_CHDIR" ]; then
fi


export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"

check_dev_null() {
if [ ! -c /dev/null ]; then
echo "/dev/null is not a character device!"
exit 1
fi
}


export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"


wait_pid () {
pid=$1
forever=1
Expand Down Expand Up @@ -143,6 +141,7 @@ case "$1" in
restart)
echo "Restarting celery periodic task scheduler"
stop_beat
check_dev_null
start_beat
;;

Expand Down

0 comments on commit 912812d

Please sign in to comment.