mirror of https://github.com/Icinga/icinga2.git
parent
c3ed3309a1
commit
66dd494cd1
|
@ -1,15 +1,13 @@
|
||||||
@CMAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/icinga2.log @CMAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/debug.log {
|
@MAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/icinga2.log @CMAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/debug.log {
|
||||||
daily
|
daily
|
||||||
rotate 7
|
rotate 7
|
||||||
su @ICINGA2_USER@ @ICINGA2_GROUP@
|
|
||||||
compress
|
compress
|
||||||
delaycompress
|
delaycompress
|
||||||
missingok
|
missingok
|
||||||
notifempty
|
notifempty
|
||||||
create 644 @ICINGA2_USER@ @ICINGA2_GROUP@
|
create 644 @ICINGA2_USER@ @ICINGA2_GROUP@
|
||||||
copytruncate
|
|
||||||
postrotate
|
postrotate
|
||||||
if ! killall -q -USR1 icinga2; then
|
if ! kill -l USR1 `cat @ICINGA2_RUNDIR@/icinga2/icinga2.pid`; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
endscript
|
endscript
|
||||||
|
@ -17,14 +15,12 @@
|
||||||
|
|
||||||
@CMAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/error.log {
|
@CMAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/error.log {
|
||||||
daily
|
daily
|
||||||
su @ICINGA2_USER@ @ICINGA2_GROUP@
|
|
||||||
rotate 90
|
rotate 90
|
||||||
compress
|
compress
|
||||||
delaycompress
|
delaycompress
|
||||||
missingok
|
missingok
|
||||||
notifempty
|
notifempty
|
||||||
create 644 @ICINGA2_USER@ @ICINGA2_GROUP@
|
create 644 @ICINGA2_USER@ @ICINGA2_GROUP@
|
||||||
copytruncate
|
|
||||||
# TODO: figure out how to get Icinga to re-open this log file
|
# TODO: figure out how to get Icinga to re-open this log file
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue