Reload logs after logrotate across distros

Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>

fixes #10935
This commit is contained in:
Lee Clemens 2016-01-19 19:12:00 -05:00 committed by Jean Flach
parent 4412389eb6
commit 7bf012ca50
1 changed files with 1 additions and 5 deletions

View File

@ -7,11 +7,7 @@
notifempty notifempty
create 644 @ICINGA2_USER@ @ICINGA2_GROUP@ create 644 @ICINGA2_USER@ @ICINGA2_GROUP@
postrotate postrotate
if service icinga2 status > /dev/null; then /bin/kill -USR1 $(cat @ICINGA2_RUNDIR@/icinga2/icinga2.pid 2> /dev/null) 2> /dev/null || true
if [ -e @ICINGA2_RUNDIR@/icinga2/icinga2.pid ]; then
kill -USR1 $(cat @ICINGA2_RUNDIR@/icinga2/icinga2.pid)
fi
fi
endscript endscript
} }