Skip to content

Commit ce9b31c

Browse files
committed
Changed exit codes to fully comply with standard
1 parent d00e919 commit ce9b31c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

init

+7-6
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ VERBOSE=no
5353
readonly EC_INVALID_ARGUMENT=2
5454
readonly EC_SUPER_USER_ONLY=4
5555
readonly EC_DAEMON_NOT_FOUND=5
56-
readonly EC_RELOADING_FAILED=95
57-
readonly EC_RESTART_STOP_FAILED=96
58-
readonly EC_RESTART_START_FAILED=97
59-
readonly EC_START_FAILED=98
60-
readonly EC_STOP_FAILED=99
56+
readonly EC_RELOADING_FAILED=150
57+
readonly EC_RESTART_STOP_FAILED=151
58+
readonly EC_RESTART_START_FAILED=152
59+
readonly EC_START_FAILED=153
60+
readonly EC_STOP_FAILED=154
6161

6262

6363
# ----------------------------------------------------------------------------------------------------------------------
@@ -224,7 +224,8 @@ readonly SSD_OPTIONS="--quiet --oknodo --pidfile "${PIDFILE}" --exec "${DAEMON}"
224224
#
225225
# 0 = Program is running
226226
# 1 = Program is not running and the PID file exists.
227-
# 3 = Porgram is not running.
227+
# 2 = Program is not running and a LOCK file exists.
228+
# 3 = Program is not running.
228229
# 4 = Unable to determine status.
229230
start-stop-daemon --status ${SSD_OPTIONS} 2>/dev/null 1>/dev/null
230231
readonly STATUS=$?

0 commit comments

Comments
 (0)