]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/packages/nrpe
update Tor to 0.3.5.8
[people/pmueller/ipfire-2.x.git] / src / initscripts / packages / nrpe
1 #!/bin/sh
2 # Begin $rc_base/init.d/nrpe
3
4 . /etc/sysconfig/rc
5 . $rc_functions
6
7 NRPEBIN=/usr/bin/nrpe
8 NRPECFG=/etc/nagios/nrpe.cfg
9
10 case "$1" in
11 start)
12 boot_mesg "Starting nrpe..."
13 loadproc $NRPEBIN -c $NRPECFG -d
14 ;;
15
16 stop)
17 boot_mesg "Stopping nrpe..."
18 killproc $NRPEBIN
19 rm -f /var/run/nrpe.pid
20 ;;
21
22 restart)
23 $0 stop
24 sleep 1
25 $0 start
26 ;;
27
28 status)
29 statusproc $NRPEBIN
30 ;;
31
32 *)
33 echo "Usage: $0 {start|stop|restart|status}"
34 exit 1
35 ;;
36 esac
37
38 # End $rc_base/init.d/nrpe