]> git.pld-linux.org Git - packages/nagios-nrpe.git/commitdiff
LSB compliance
authorankry <ankry@pld-linux.org>
Wed, 9 Jun 2004 05:47:17 +0000 (05:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nrpe.init -> 1.2

nrpe.init

index aa03c26be30022fe8a0b15e6aff0d35b2719bd8c..b2b2b7392ab4dc9560933e4e9837294834816ce3 100644 (file)
--- a/nrpe.init
+++ b/nrpe.init
@@ -3,15 +3,14 @@
 #  Created 2000-01-03 by jaclu@grm.se
 #  Rewritten for PLD 2004-06-02 by patrys@pld-linux.org
 #
-# nrpe          This shell script takes care of starting and stopping
-#               nrpe.
+# nrpe         This shell script takes care of starting and stopping
+#              nrpe.
 #
-# chkconfig: 2345 80 30
-# description: nrpe is a daemon for a remote nagios server, \
-#              running nagios plugins on this host.
-# processname: nrpe
-# config: /usr/local/nagios/etc/nrpe.cfg
-
+# chkconfig:   2345 80 30
+# description: nrpe is a daemon for a remote nagios server, \
+#              running nagios plugins on this host.
+# processname: nrpe
+# config:      /usr/local/nagios/etc/nrpe.cfg
 
 . /etc/rc.d/init.d/functions
 
@@ -47,16 +46,17 @@ case "$1" in
                msg_not_running "nrpe"
        fi
        ;;
-  restart)
+  restart|force-reload)
        $0 stop
        $0 start
        ;;
   status)
        status nrpe
+       exit $?
        ;;
   *)
-       echo "Usage: nrpe {start|stop|restart|status}"
-       exit 1
+       echo "Usage: nrpe {start|stop|restart|force-reload|status}"
+       exit 3
 esac
 
 exit 0
This page took 0.046196 seconds and 4 git commands to generate.