Skip to content

Commit f02763f

Browse files
authored
temporary fix as check_run not run starting in foreground
1 parent 8757eb5 commit f02763f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

content/opt/supervisor/icinga2_supervisor

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
. /opt/helpers
44

5+
if [ ! -e '/var/run/icinga2' ]; then
6+
mkdir /var/run/icinga2
7+
mkdir /var/run/icinga2/cmd
8+
chown nagios:www-data /var/run/icinga2/cmd
9+
chmod 2710 /var/run/icinga2/cmd
10+
chown nagios:nagios /var/run/icinga2
11+
chmod 0755 /var/run/icinga2
12+
fi
13+
514
service icinga2 foreground &
615

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

0 commit comments

Comments
 (0)