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