X-Git-Url: http://git.pld-linux.org/?p=packages%2Fnagios-nrpe.git;a=blobdiff_plain;f=nrpe.init;fp=nrpe.init;h=4cba6ef4d13023cbd4d8203dc6a9b0172832d53a;hp=3161c7334e4dcaae031ce86f538d90f4f855a161;hb=1527661b1bf027c6b90fb5456568b33d9b518d25;hpb=912f5a12034c779102b255cce3989d8032807fe3 diff --git a/nrpe.init b/nrpe.init index 3161c73..4cba6ef 100755 --- a/nrpe.init +++ b/nrpe.init @@ -27,6 +27,8 @@ else exit 0 fi +pidfile=/var/run/nrpe/nrpe.pid + start() { if [ -f /var/lock/subsys/nrpe ]; then msg_already_running "Nagios NRPE daemon" @@ -46,7 +48,7 @@ stop() { fi msg_stopping "Nagios NRPE daemon" - killproc --pidfile nrpe/nrpe.pid nrpe + killproc --pidfile $pidfile nrpe rm -f /var/lock/subsys/nrpe } @@ -80,7 +82,7 @@ case "$1" in condrestart 7 ;; status) - status nrpe + status --pidfile $pidfile nrpe exit $? ;; *)