Commits

Zhang Huangbin  committed ff8a66f

Fixed: Incorrect return values of service status in rc scripts on Linux.
Thanks Marek Skubela <marek.skubela _at_ gmail> for the report.

  • Participants
  • Parent commits 9c4bb42

Comments (0)

Files changed (5)

 iRedAPD-1.4.1:
     * Fixed:
+        + Incorrect return values of service status in rc scripts on Linux.
+          Thanks Marek Skubela <marek.skubela _at_ gmail> for the report.
         + Don't return DUNNO if sender address has less than 6 characters.
           Thanks warriornew for the report in our bbs.
         + Incorrect variable name in plugins/sql_alias_access_policy.py.

File rc_scripts/iredapd.debian

 
         if [ X"$s" == X"running" ]; then
             echo "${PROG} is running."
+            exit 0
         else
             echo "${PROG} is stopped."
+            exit 1
         fi
     else
         echo "${PROG} is stopped."
+        exit 3
     fi
-    unset s
 }
 
 case "$1" in

File rc_scripts/iredapd.freebsd

 
         if [ X"$s" == X"running" ]; then
             echo "${name} is running."
+            exit 0
         else
             echo "${name} is stopped."
+            exit 1
         fi
     else
         echo "${name} is stopped."
+        exit 3
     fi
-    unset s
 }
 
 empty(){

File rc_scripts/iredapd.opensuse

 
         if [ X"$s" == X"running" ]; then
             echo "${PROG} is running."
+            exit 0
         else
             echo "${PROG} is stopped."
+            exit 1
         fi
     else
         echo "${PROG} is stopped."
+        exit 3
     fi
-    unset s
 }
 
 case "$1" in

File rc_scripts/iredapd.rhel

 
         if [ X"$s" == X"running" ]; then
             echo "${PROG} is running."
+            exit 0
         else
             echo "${PROG} is stopped."
+            exit 1
         fi
     else
         echo "${PROG} is stopped."
+        exit 3
     fi
-    unset s
 }
 
 case "$1" in