From 34c2f96a4e2582f13bc07d8d03a128a31e06813f Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 18 Jun 2010 13:46:00 +0400 Subject: [PATCH 2/6] Read extra configuration from /etc/sysconfig/nrpe See this rhbz for the details: https://bugzilla.redhat.com/show_bug.cgi?id=449174 --- init-script.in | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/init-script.in b/init-script.in index 0bd7629..720a96d 100644 --- a/init-script.in +++ b/init-script.in @@ -24,6 +24,11 @@ fi # Source networking configuration. . /etc/sysconfig/network +# Read configuration (environment etc.) for nrpe and plugins +if [ -f /etc/sysconfig/nrpe ]; then + . /etc/sysconfig/nrpe +fi + # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 @@ -36,7 +41,7 @@ case "$1" in start) # Start daemons. echo -n "Starting nrpe: " - daemon $NrpeBin -c $NrpeCfg -d + daemon $NrpeBin -c $NrpeCfg -d $NRPE_SSL_OPT echo touch $LockFile ;; -- 1.6.6.1