]> git.pld-linux.org Git - packages/nagios.git/commitdiff
- LSB conformance
authorankry <ankry@pld-linux.org>
Sun, 25 May 2003 11:39:18 +0000 (11:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios.init -> 1.6

nagios.init

index 143417fba9788b7b6bbe7686fa4ac5e3e6846ec4..e6bcb9237119122d470e6f492f7e96e6d9ef2d6a 100644 (file)
@@ -25,6 +25,7 @@ else
        exit 0
 fi
 
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -41,7 +42,6 @@ case "$1" in
                fi
        else
                msg_already_running nagios
-               exit 1
        fi
        ;;
   stop)
@@ -52,21 +52,20 @@ case "$1" in
                rm -f /var/lock/subsys/nagios > /dev/null 2>&1
        else
                msg_not_running nagios
-               exit 1
        fi
        ;;
   status)
        status nagios
-       RETVAL=$?
+       exit $?
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
-       ;;
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
 esac
 
 exit $RETVAL
This page took 0.465338 seconds and 4 git commands to generate.