contrib/nagios-nrpe/nrpe.rc
2012-06-12 13:27:22 +02:00

24 lines
270 B
Bash
Executable File

#!/bin/sh
#
# /etc/rc.d/nrpe: start/stop nagios nrpe daemon
#
case $1 in
start)
/usr/bin/nrpe -c /etc/nagios/nrpe.cfg -d
;;
stop)
killall -q /usr/bin/nrpe
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file