[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: run configtest as user to avoid permission problems on the config files

git at icinga.org git at icinga.org
Thu Jul 8 21:01:49 CEST 2010


Module: icinga-core
Branch: mfriedrich/core
Commit: 66a96c3b102904756935d4e453fa980961f901b2
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=66a96c3b102904756935d4e453fa980961f901b2

Author: Christoph Maser <cmr at financial.com>
Date:   Fri Jun 18 19:39:27 2010 +0200

run configtest as user to avoid permission problems  on the config files

---

 daemon-init-redhat.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemon-init-redhat.in b/daemon-init-redhat.in
index 883e41b..c6f66d6 100644
--- a/daemon-init-redhat.in
+++ b/daemon-init-redhat.in
@@ -92,7 +92,7 @@ case "$1" in
         restart
         ;;
    configtest)
-	$exec -v $config
+        $nice runuser -s /bin/bash - $user -c "$corelimit >/dev/null 2>&1 ; $exec -v $config"
 	RETVAL=$?
 	;;
     *)





More information about the icinga-checkins mailing list