Skip to content

Commit

Permalink
Start icinga2 in foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
jjethwa authored Jul 19, 2018
1 parent 6ec8a82 commit 8757eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/opt/supervisor/icinga2_supervisor
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

. /opt/helpers

service icinga2 start
service icinga2 foreground &

# Kickstart is only possible after icinga2 start -> not in setup script
if evaluate_boolean "${ICINGA2_FEATURE_DIRECTOR}" \
&& evaluate_boolean "${ICINGA2_FEATURE_DIRECTOR_KICKSTART}"; then
icingacli director kickstart run
sleep 5 && icingacli director kickstart run
fi

# Allow any signal which would kill a process to stop server
Expand Down

0 comments on commit 8757eb5

Please sign in to comment.