exit 0
fi
+pidfile=/var/run/nrpe/nrpe.pid
+
start() {
if [ -f /var/lock/subsys/nrpe ]; then
msg_already_running "Nagios NRPE daemon"
fi
msg_stopping "Nagios NRPE daemon"
- killproc --pidfile nrpe/nrpe.pid nrpe
+ killproc --pidfile $pidfile nrpe
rm -f /var/lock/subsys/nrpe
}
condrestart 7
;;
status)
- status nrpe
+ status --pidfile $pidfile nrpe
exit $?
;;
*)