summaryrefslogtreecommitdiff
path: root/files/OpenBSD/bin/apache_logrotate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'files/OpenBSD/bin/apache_logrotate.sh')
-rw-r--r--files/OpenBSD/bin/apache_logrotate.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/files/OpenBSD/bin/apache_logrotate.sh b/files/OpenBSD/bin/apache_logrotate.sh
new file mode 100644
index 0000000..c8614f8
--- /dev/null
+++ b/files/OpenBSD/bin/apache_logrotate.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+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 $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\"";'