Fix log rotation for member vhosts
authorClinton Ebadi <clinton@unknownlamer.org>
Sun, 23 Jun 2013 20:24:27 +0000 (16:24 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sun, 23 Jun 2013 20:24:27 +0000 (16:24 -0400)
* Missed this from mire (apache2 logrotate was modified manuall)

debian/hcoop-apache2-config.logrotate [new file with mode: 0644]

diff --git a/debian/hcoop-apache2-config.logrotate b/debian/hcoop-apache2-config.logrotate
new file mode 100644 (file)
index 0000000..569ff3d
--- /dev/null
@@ -0,0 +1,22 @@
+# log rotation for hcoop member vhosts
+# (file name is less than ideal, but why bother messing with dh?)
+/var/log/apache2/user/*/*/*/*/*/*/*/*.log {
+        weekly
+        missingok
+        rotate 52
+        compress
+
+        # docelic, Sun Nov  8 14:50:11 EST 2009
+        # per https://bugzilla.hcoop.net/show_bug.cgi?id=744
+        dateext
+
+        delaycompress
+        notifempty
+        create 640 root adm
+        sharedscripts
+        postrotate
+                if [ -f /var/run/apache2.pid ]; then
+                        /etc/init.d/apache2 reload > /dev/null 2>&1
+                fi
+        endscript
+}