mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
parent
d8511a3193
commit
3f361bcb05
@ -124,10 +124,15 @@ checkconfig() {
|
|||||||
|
|
||||||
echo "Validating the configuration file:"
|
echo "Validating the configuration file:"
|
||||||
if ! $DAEMON -c $ICINGA2_CONFIG_FILE -C -u $ICINGA2_USER -g $ICINGA2_GROUP; 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$1" = "x" ]; then
|
||||||
if [ "x$2" = "xfail" ]; then
|
echo "Icinga 2 detected configuration errors."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
else
|
||||||
|
echo "Not "$1"ing Icinga 2 due to configuration errors."
|
||||||
|
if [ "x$2" = "xfail" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user