aboutsummaryrefslogtreecommitdiffstats
path: root/main/clamav/clamd.logrotate
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-05-20 15:56:01 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-05-20 15:59:33 +0000
commit14861f32173de43ae7a88d2464bf63cae9182d79 (patch)
treee3b26cf65e86c79ea66dcf6fe06146e484570180 /main/clamav/clamd.logrotate
parentb17c6c49f3f2503d4e799e22ec4e463576c11acc (diff)
downloadaports-14861f32173de43ae7a88d2464bf63cae9182d79.tar.bz2
aports-14861f32173de43ae7a88d2464bf63cae9182d79.tar.xz
main/clamav: split package and move db to /var/lib/clamav
Diffstat (limited to 'main/clamav/clamd.logrotate')
-rw-r--r--main/clamav/clamd.logrotate8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/clamav/clamd.logrotate b/main/clamav/clamd.logrotate
new file mode 100644
index 0000000000..3d7fc79cad
--- /dev/null
+++ b/main/clamav/clamd.logrotate
@@ -0,0 +1,8 @@
+/var/log/clamav/clamd.log {
+ missingok
+ postrotate
+ /etc/init.d/clamd logfix
+ /bin/kill -HUP `cat /var/run/clamav/clamd.pid 2> /dev/null` 2>/dev/null || true
+ endscript
+}
+