Koha-clms/debian/koha-common.logrotate

21 lines
594 B
Plaintext

# Rotate log files for all Koha instances.
/var/log/koha/*/*.log {
rotate 5
weekly
missingok
compress
delaycompress
notifempty
sharedscripts
prerotate
/usr/sbin/koha-zebra --stop $(koha-list --enabled) > /dev/null
/usr/sbin/koha-plack --stop --quiet $(koha-list --enabled --plack) > /dev/null
endscript
postrotate
/etc/init.d/apache2 reload > /dev/null
/usr/sbin/koha-plack --start --quiet $(koha-list --enabled --plack) > /dev/null
/usr/sbin/koha-zebra --start $(koha-list --enabled) > /dev/null
endscript
}