summaryrefslogtreecommitdiffstats
path: root/conf/debian/puppet.logrotate
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-07-10 19:52:26 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-07-10 19:52:26 +1000
commit605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52 (patch)
treebfab41f07b972f61585ef2fcf454ad9fdef6c832 /conf/debian/puppet.logrotate
parentd25c2b282cc4cd703bba3d2457f93431098ddc85 (diff)
downloadpuppet-605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52.tar.gz
puppet-605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52.tar.xz
puppet-605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52.zip
Moved debian to conf and updated examples directory
Diffstat (limited to 'conf/debian/puppet.logrotate')
-rw-r--r--conf/debian/puppet.logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/conf/debian/puppet.logrotate b/conf/debian/puppet.logrotate
new file mode 100644
index 000000000..3864e396d
--- /dev/null
+++ b/conf/debian/puppet.logrotate
@@ -0,0 +1,11 @@
+/var/log/puppet/*log {
+ missingok
+ create 0644 puppet puppet
+ compress
+ rotate 4
+
+ postrotate
+ [ -e /etc/init.d/puppetmaster ] && /etc/init.d/puppetmaster restart >/dev/null 2>&1 || true
+ [ -e /etc/init.d/puppet ] && /etc/init.d/puppet reload > /dev/null 2>&1 || true
+ endscript
+}