From 0d2259f0f18c62a01ad17034ccbb5ad05ec2124a Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Sun, 23 Jun 2013 16:24:27 -0400 Subject: [PATCH] Fix log rotation for member vhosts * Missed this from mire (apache2 logrotate was modified manuall) --- debian/hcoop-apache2-config.logrotate | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 debian/hcoop-apache2-config.logrotate diff --git a/debian/hcoop-apache2-config.logrotate b/debian/hcoop-apache2-config.logrotate new file mode 100644 index 0000000..569ff3d --- /dev/null +++ b/debian/hcoop-apache2-config.logrotate @@ -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 +} -- 2.20.1