diff options
Diffstat (limited to 'www/orion-devel/files/orionctl')
-rw-r--r-- | www/orion-devel/files/orionctl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/www/orion-devel/files/orionctl b/www/orion-devel/files/orionctl index cd4b252..a238e93 100644 --- a/www/orion-devel/files/orionctl +++ b/www/orion-devel/files/orionctl @@ -30,9 +30,8 @@ case "$1" in if [ "${AS_RC_SCRIPT}" = "yes" ]; then echo "" fi - echo "${NAME}: ERROR: Orion has already been started." echo "${NAME}: ERROR: Found Orion PID file at ${PID_FILE}. Orion is probably already running." - exit 64 + exit 1 fi # Make sure the Orion directory does exist @@ -41,7 +40,7 @@ case "$1" in echo "" fi echo "${NAME}: ERROR: Unable to find Orion home directory at ${ORION_HOME}." - exit 64 + exit 2 fi # Make sure the Orion JAR file exists @@ -50,7 +49,7 @@ case "$1" in echo "" fi echo "${NAME}: ERROR: Unable to find Orion JAR file at ${JAR_FILE}." - exit 64 + exit 3 fi # Make sure the Java VM can be found @@ -59,7 +58,7 @@ case "$1" in echo "" fi echo "${NAME}: ERROR: Unable to find Java VM at ${JAVA_HOME}." - exit 64 + exit 4 fi # Create the process ID file @@ -83,14 +82,14 @@ case "$1" in # ...otherwise complain else echo "${NAME}: ERROR: Unable to find Orion PID file at ${PID_FILE}. Orion is probably not running." - exit 64 + exit 16 fi else if [ "${AS_RC_SCRIPT}" = "yes" ]; then echo -n " ${NAME}" fi /bin/kill `cat ${PID_FILE}` - rm ${PID_FILE} + rm -f ${PID_FILE} fi ;; |