nagios-nrpe/nagios-nrpe-2.13-initscript_add_reload.patch

30 lines
675 B
Diff
Raw Permalink Normal View History

--- nrpe-2.13/init-script.in 2003-01-08 02:11:36.000000000 +0100
+++ nrpe-2.13/init-script.in.openmamba 2012-10-23 22:48:40.000000000 +0200
@@ -9,7 +9,7 @@
# 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
+# config: /etc/nagios/nrpe.cfg
# Source function library
@@ -51,11 +51,16 @@
$0 stop
$0 start
;;
+ reload)
+ echo -n "Reloading nrpe: "
+ killproc nrpe -HUP
+ echo
+ ;;
status)
status nrpe
;;
*)
- echo "Usage: nrpe {start|stop|restart|status}"
+ echo "Usage: nrpe {start|stop|restart|reload|status}"
exit 1
esac