add compress and delaycompress to the zoneminder logrotate settings

This commit is contained in:
Isaac Connor 2016-10-02 10:05:07 -04:00
parent b064383248
commit 9e3f6226ed
3 changed files with 8 additions and 2 deletions

View File

@ -2,9 +2,11 @@
missingok missingok
notifempty notifempty
sharedscripts sharedscripts
delaycompress
compress
postrotate postrotate
/usr/bin/zmpkg.pl logrot >>/dev/null 2>&1 || : /usr/bin/zmpkg.pl logrot >>/dev/null 2>&1 || :
endscript endscript
weekly daily
rotate 3 rotate 7
} }

View File

@ -2,6 +2,8 @@
missingok missingok
notifempty notifempty
sharedscripts sharedscripts
delaycompress
compress
postrotate postrotate
/usr/bin/zmpkg.pl logrot >>/dev/null 2>&1 || : /usr/bin/zmpkg.pl logrot >>/dev/null 2>&1 || :
endscript endscript

View File

@ -11,6 +11,8 @@
@ZM_LOGDIR@/*.log { @ZM_LOGDIR@/*.log {
missingok missingok
notifempty notifempty
delaycompress
compress
sharedscripts sharedscripts
postrotate postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true