[packages/clamav] - separated freshclam.log rotation: 1. clamd.log might not exist if clamd was not ever running, assu

gotar gotar at pld-linux.org
Sat Mar 9 20:03:48 CET 2013


commit 4e4edd626758917903c1545de4ac553e7d3b1849
Author: Tomasz Pala <gotar at pld-linux.org>
Date:   Sun Feb 17 13:02:31 2013 +0100

    - separated freshclam.log rotation:
    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 | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/clamav.logrotate b/clamav.logrotate
index a2d4c9b..4bb3de7 100644
--- a/clamav.logrotate
+++ b/clamav.logrotate
@@ -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
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/clamav.git/commitdiff/4e4edd626758917903c1545de4ac553e7d3b1849



More information about the pld-cvs-commit mailing list