Skip to content

Commit

Permalink
temporary fix as check_run not run starting in foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
jjethwa authored Jul 19, 2018
1 parent 8757eb5 commit f02763f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions content/opt/supervisor/icinga2_supervisor
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

. /opt/helpers

if [ ! -e '/var/run/icinga2' ]; then
mkdir /var/run/icinga2
mkdir /var/run/icinga2/cmd
chown nagios:www-data /var/run/icinga2/cmd
chmod 2710 /var/run/icinga2/cmd
chown nagios:nagios /var/run/icinga2
chmod 0755 /var/run/icinga2
fi

service icinga2 foreground &

# Kickstart is only possible after icinga2 start -> not in setup script
Expand Down

0 comments on commit f02763f

Please sign in to comment.