nagios-nrpe/nagios-nrpe-2.13-initscript_extra_options.patch

24 lines
574 B
Diff
Raw Permalink Normal View History

--- nrpe-2.13/init-script.in 2012-10-23 22:51:11.000000000 +0200
+++ nrpe-2.13/init-script.in.sysconfig 2012-10-23 22:55:13.000000000 +0200
@@ -24,6 +24,11 @@
# Source networking configuration.
. /etc/sysconfig/network
+# Extra configuration options
+if [ -f /etc/sysconfig/nrpe ]; then
+ . /etc/sysconfig/nrpe
+fi
+
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
@@ -36,7 +41,7 @@
start)
# Start daemons.
echo -n "Starting nrpe: "
- daemon $NrpeBin -c $NrpeCfg -d
+ daemon $NrpeBin -c $NrpeCfg -d $NRPE_OPTS
echo
touch $LockFile
;;