From: Peter Palfrader <peter@palfrader.org>
Date: Wed, 20 Feb 2013 15:37:43 +0000 (+0100)
Subject: Add a file for etc/logrotate.d/samhain
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=cf9bc079ab9409593fd9154569408a6082ddf725;p=dsa-puppet.git

Add a file for etc/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
+}