slackbuilds_ponce/system/clamav/logrotate.clamav
pyllyukko 86b39d72bd system/clamav: Fixed logging location of freshclam in rc.clamav.
Send SIGHUP to freshclam too in the logrotate script

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2012-11-04 09:53:47 -05:00

13 lines
330 B
Text

/var/log/clamav/*.log {
su clamav clamav
weekly
rotate 5
compress
delaycompress
notifempty
missingok
postrotate
/bin/kill -HUP `cat /var/run/clamav/clamd.pid 2>/dev/null` 2>/dev/null || true
/bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2>/dev/null` 2>/dev/null || true
endscript
}