Return LSB-compliant exit code from server.sh status Exit with code 3 when the service is stopped, per LSB init script guidelines, instead of falling through to exit 0. Change-Id: I72be8efb3b306c8adb431a328cf3057ea9c11db2
diff --git a/server.sh b/server.sh index 409292e..f3d320f 100755 --- a/server.sh +++ b/server.sh
@@ -119,6 +119,8 @@ echo "Server is RUNNING with PID $(cat "$PID_FILE")." else echo "Server is STOPPED." + # according to LSB init script guidelines, return code 3 indicates the service is not running + exit 3 fi }