????
| Current Path : /etc/logrotate.d/ |
| Current File : //etc/logrotate.d/libcare |
/var/log/libcare/*.log {
daily
rotate 5
maxage 5
missingok
notifempty
compress
nocreate
postrotate
# Reopen server.log after rotating
[ ! -S /var/run/libcare.sock ] || \
[ $(basename "$1") != server.log ] || \
/usr/libexec/kcare/libcare-client reconf
# Remove really old logs (30+ days old)
find /var/log/libcare/ -name "*.gz" -mtime +30 -delete
endscript
}