]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Add a file for etc/logrotate.d/samhain
authorPeter Palfrader <peter@palfrader.org>
Wed, 20 Feb 2013 15:37:43 +0000 (16:37 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 20 Feb 2013 15:37:43 +0000 (16:37 +0100)
modules/samhain/templates/logrotate.d-samhain [new file with mode: 0644]

diff --git a/modules/samhain/templates/logrotate.d-samhain b/modules/samhain/templates/logrotate.d-samhain
new file mode 100644 (file)
index 0000000..025611e
--- /dev/null
@@ -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
+}