From cf9bc079ab9409593fd9154569408a6082ddf725 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 20 Feb 2013 16:37:43 +0100 Subject: [PATCH] Add a file for etc/logrotate.d/samhain --- modules/samhain/templates/logrotate.d-samhain | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/samhain/templates/logrotate.d-samhain diff --git a/modules/samhain/templates/logrotate.d-samhain b/modules/samhain/templates/logrotate.d-samhain new file mode 100644 index 00000000..025611e3 --- /dev/null +++ b/modules/samhain/templates/logrotate.d-samhain @@ -0,0 +1,14 @@ +/var/log/samhain/*.log { + weekly + missingok + rotate 52 + compress + delaycompress + notifempty + create 640 root adm + sharedscripts + postrotate + if [ -f /var/run/samhain/samhain.pid ]; then \ + /etc/init.d/samhain reload > /dev/null; fi + endscript +} -- 2.39.2