mirror of https://github.com/Icinga/icinga2.git
parent
5e53b771fa
commit
dde00a3f16
|
@ -21,14 +21,14 @@ if [ -f $SYSCONFIGFILE ]; then
|
||||||
. $SYSCONFIGFILE
|
. $SYSCONFIGFILE
|
||||||
else
|
else
|
||||||
echo "Can't load system specific defines from $SYSCONFIGFILE."
|
echo "Can't load system specific defines from $SYSCONFIGFILE."
|
||||||
exit 1
|
exit 6
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test -x $DAEMON || exit 0
|
test -x $DAEMON || exit 5
|
||||||
|
|
||||||
if [ ! -e $ICINGA2_CONFIG_FILE ]; then
|
if [ ! -e $ICINGA2_CONFIG_FILE ]; then
|
||||||
echo "Config file '$ICINGA2_CONFIG_FILE' does not exist."
|
echo "Config file '$ICINGA2_CONFIG_FILE' does not exist."
|
||||||
exit 1
|
exit 6
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get function from functions library
|
# Get function from functions library
|
||||||
|
@ -99,7 +99,7 @@ reload() {
|
||||||
echo "Done"
|
echo "Done"
|
||||||
else
|
else
|
||||||
echo "Error: Icinga not running"
|
echo "Error: Icinga not running"
|
||||||
exit 3
|
exit 7
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ status() {
|
||||||
echo "Running"
|
echo "Running"
|
||||||
else
|
else
|
||||||
echo "Not running"
|
echo "Not running"
|
||||||
exit 3
|
exit 7
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,6 +165,6 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start|stop|restart|reload|checkconfig|status}"
|
echo "Usage: $0 {start|stop|restart|reload|checkconfig|status}"
|
||||||
exit 1
|
exit 3
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue