mirror of https://github.com/Icinga/icinga2.git
parent
a4081f1445
commit
6b9f3beb14
|
@ -53,7 +53,7 @@ check_run () {
|
|||
}
|
||||
|
||||
check_config () {
|
||||
$DAEMON run --validate -u "$DAEMON_USER" -g "$DAEMON_GROUP" -c "$DAEMON_CONFIG"
|
||||
$DAEMON daemon --validate -u "$DAEMON_USER" -g "$DAEMON_GROUP" -c "$DAEMON_CONFIG"
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -69,7 +69,7 @@ do_start()
|
|||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|
||||
|| return 1
|
||||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
|
||||
run -c "$DAEMON_CONFIG" -u "$DAEMON_USER" -g "$DAEMON_GROUP" -d $DAEMON_ARGS \
|
||||
daemon -c "$DAEMON_CONFIG" -u "$DAEMON_USER" -g "$DAEMON_GROUP" -d $DAEMON_ARGS \
|
||||
|| return 2
|
||||
# Add code here, if necessary, that waits for the process to be ready
|
||||
# to handle requests from services started subsequently which depend
|
||||
|
@ -84,7 +84,7 @@ do_foreground()
|
|||
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test \
|
||||
|| return 1
|
||||
start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- \
|
||||
run -c "$DAEMON_CONFIG" -u "$DAEMON_USER" -g "$DAEMON_GROUP" $DAEMON_ARGS \
|
||||
daemon -c "$DAEMON_CONFIG" -u "$DAEMON_USER" -g "$DAEMON_GROUP" $DAEMON_ARGS \
|
||||
|| return 2
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue