nagios-nrpe/nagios-nrpe-2.13-initscript_add_reload.patch
Silvan Calarco c4e68e7c68 require nagios-plugins
install a default nrpe command configuration for nagios [release 2.15-2mamba;Wed May 07 2014]
2024-01-06 07:30:52 +01:00

30 lines
675 B
Diff

--- 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