From a066cbf110717d7074688f16894152ef67479160 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 17 Mar 2014 10:14:21 +0100 Subject: [PATCH] Init script shouldn't run config validation as root. Fixes #5761 --- etc/init.d/icinga2.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/init.d/icinga2.cmake b/etc/init.d/icinga2.cmake index d771289cc..65faa3e47 100644 --- a/etc/init.d/icinga2.cmake +++ b/etc/init.d/icinga2.cmake @@ -120,7 +120,7 @@ checkconfig() { printf "Checking configuration:" echo "Validating the configuration file:" - if ! $DAEMON -c $ICINGA2_CONFIG_FILE -C; then + if ! $DAEMON -c $ICINGA2_CONFIG_FILE -C -u $ICINGA2_USER -g $ICINGA2_GROUP; then echo "Not "$1"ing Icinga 2 due to configuration errors." if [ "x$2" = "xfail" ]; then exit 1 -- 2.40.0