]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- separated freshclam.log rotation:
authorTomasz Pala <gotar@pld-linux.org>
Sun, 17 Feb 2013 12:02:31 +0000 (13:02 +0100)
committerTomasz Pala <gotar@pld-linux.org>
Sun, 17 Feb 2013 12:02:31 +0000 (13:02 +0100)
1. clamd.log might not exist if clamd was not ever running, assure processing,
2. the log file is handled by fleshclam process itself or syslog, not clamd
- o not override system-wide olddir

clamav.logrotate

index a2d4c9b7c257d3e07d8d76ecf1daec6264b11c45..4bb3de774f3384fb4f15b1bc7e239b7dc92a69b6 100644 (file)
@@ -1,8 +1,12 @@
-/var/log/clamd.log /var/log/freshclam.log  {
-    olddir /var/log/archive
-    create 640 clamav root
-    sharedscripts
-    postrotate
-        /bin/killall -HUP clamd
-    endscript
+/var/log/clamd.log {
+       create 640 clamav root
+       postrotate
+               /bin/killall -HUP clamd
+       endscript
+}
+/var/log/freshclam.log {
+       create 640 clamav root
+       postrotate
+               /bin/killall -HUP freshclam || /sbin/service syslog-ng flush-logs >/dev/null
+       endscript
 }
This page took 0.208513 seconds and 4 git commands to generate.