mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
2350593ef0
commit
95d9b6f221
@ -1,23 +1,6 @@
|
||||
# ----- logrotate config -------------
|
||||
/var/log/icinga2/icinga2.log {
|
||||
/var/log/icinga2/icinga2.log /var/log/icinga2/debug.log {
|
||||
daily
|
||||
rotate 90
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
create 644 icinga icinga
|
||||
copytruncate
|
||||
postrotate
|
||||
if ! killall -q -USR1 icinga2; then
|
||||
exit 1
|
||||
fi
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/icinga2/debug.log {
|
||||
hourly
|
||||
rotate 90
|
||||
rotate 7
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
@ -40,5 +23,6 @@
|
||||
notifempty
|
||||
create 644 icinga icinga
|
||||
copytruncate
|
||||
# TODO: figure out how to get Icinga to re-open this log file
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user