Browse Source

Bump celerybeat init script version and cosmetics for #1942

Ask Solem 10 years ago
parent
commit
5ce97f1de3
1 changed files with 4 additions and 4 deletions
  1. 4 4
      extra/generic-init.d/celerybeat

+ 4 - 4
extra/generic-init.d/celerybeat

@@ -20,7 +20,7 @@
 # Cannot use set -e/bash -e since the kill -0 command will abort
 # abnormally in the absence of a valid process ID.
 #set -e
-VERSION=10.0
+VERSION=10.1
 echo "celery init v${VERSION}."
 
 if [ $(id -u) -ne 0 ]; then
@@ -251,7 +251,7 @@ check_status () {
     local failed=
     local pid_file=$CELERYBEAT_PID_FILE
     if [ ! -e $pid_file ]; then
-        echo "${SCRIPT_NAME} is stopped: no pids were found"
+        echo "${SCRIPT_NAME} is up: no pid file found"
         failed=true
     elif [ ! -r $pid_file ]; then
         echo "${SCRIPT_NAME} is in unknown state, user cannot read pid file."
@@ -266,10 +266,10 @@ check_status () {
             local failed=
             kill -0 $pid 2> /dev/null || failed=true
             if [ "$failed" ]; then
-                echo "${SCRIPT_NAME} (pid $pid) is stopped, but pid file exists!"
+                echo "${SCRIPT_NAME} (pid $pid) is down, but pid file exists!"
                 failed=true
             else
-                echo "${SCRIPT_NAME} (pid $pid) is running..."
+                echo "${SCRIPT_NAME} (pid $pid) is up..."
             fi
         fi
     fi