]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Try something with logrotate on wieck
authorPeter Palfrader <peter@palfrader.org>
Thu, 1 Sep 2011 06:34:34 +0000 (08:34 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 1 Sep 2011 06:34:34 +0000 (08:34 +0200)
modules/apache2/files/per-host/wieck.debian.org/etc/logrotate.d/apache2 [new file with mode: 0644]

diff --git a/modules/apache2/files/per-host/wieck.debian.org/etc/logrotate.d/apache2 b/modules/apache2/files/per-host/wieck.debian.org/etc/logrotate.d/apache2
new file mode 100644 (file)
index 0000000..9dd2f05
--- /dev/null
@@ -0,0 +1,21 @@
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+/var/log/apache2/*.log {
+       daily
+       dateext
+       missingok
+       rotate 15
+       compress
+       delaycompress
+       notifempty
+       create 644 root adm
+       sharedscripts
+       postrotate
+               if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
+                       /etc/init.d/apache2 reload > /dev/null
+               fi
+       endscript
+}