summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-11-24 01:34:57 +0100
committermh <mh@immerda.ch>2009-11-24 01:34:57 +0100
commit00c03fcdaad9322c7610437953ee0fb4c009d4b5 (patch)
treebfdc11ef30bf96fb98acd6750cab8b8670797218 /files
parent5333586e3b577fe70ddb73ab53a7220ad09d8b6a (diff)
rotate internal apache logs as well
Diffstat (limited to 'files')
-rw-r--r--files/OpenBSD/bin/apache_logrotate.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/files/OpenBSD/bin/apache_logrotate.sh b/files/OpenBSD/bin/apache_logrotate.sh
index c8614f8..c2fcad9 100644
--- a/files/OpenBSD/bin/apache_logrotate.sh
+++ b/files/OpenBSD/bin/apache_logrotate.sh
@@ -2,5 +2,6 @@
WEBROOT="/var/www/htdocs"
#PIDFILE="/var/www/logs/httpd.pid"
echo "#Autogenrated newsyslog.conf\n# logfile_name owner:group mode count size when flags"
+find /var/www/logs -name '*_log' -exec perl -e 'print "\n{}\twww:www\t644\t30\t*\t\$D0\tZ" ' \;
find $WEBROOT -name '*_log' -exec perl -e 'print "\n{}\twww:www\t644\t30\t*\t\$D0\tZ" ' \;
perl -e 'print "\t\t \"/bin/sh /opt/bin/restart_apache.sh\"";'