]> git.pld-linux.org Git - packages/net-snmp.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:
    net-snmpd.init -> 1.3
    net-snmptrapd.init -> 1.4

net-snmpd.init
net-snmptrapd.init

index 7a42ec20e5a4313d03d6822aeebe5a06d8388bbd..98a524f59173d12418ed44018f36fd00bdc98ad6 100644 (file)
@@ -37,6 +37,7 @@ else
        exit 0
 fi
 
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -51,7 +52,6 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/snmpd
        else
                msg_already_running "snmpd"
-               RETVAL=1
        fi
        ;;
   stop)
@@ -61,20 +61,20 @@ case "$1" in
                rm -f /var/lock/subsys/snmpd >/dev/null 2>&1
        else
                msg_not_running "snmpd"
-               RETVAL=1
        fi      
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   status)
        status snmpd
        exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       RETVAL=1
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
 esac
 
 exit $RETVAL
index b2e6ca70097c3324ce59b260eda717213bf1a334..944f7f3408b8315c8d561cc529921ae6582bd4c7 100644 (file)
@@ -30,7 +30,7 @@ else
        exit 0
 fi
 
-
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -42,7 +42,6 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/snmptrapd
        else
                msg_already_running "snmptrapd"
-               exit 1
        fi
        ;;
   stop)
@@ -52,20 +51,20 @@ case "$1" in
                rm -f /var/lock/subsys/snmptrapd >/dev/null 2>&1
        else
                msg_not_running "snmptrapd"
-               exit 1
        fi      
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   status)
        status snmptrapd
        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.21876 seconds and 4 git commands to generate.