summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-11-07 18:08:06 +0000
committermh <mh@immerda.ch>2008-11-07 18:08:06 +0000
commit31ed3154e51f2eb9c6200eac68231463c64720c9 (patch)
treea66cae7506acda4d4cfbf835493fad3f50f50617 /files
parenta33e779091a16b70f627a7ccc6f0efc67718c2b3 (diff)
made path more default
introduced logrotating for apache
Diffstat (limited to 'files')
-rw-r--r--files/OpenBSD/bin/apache_logrotate.sh6
-rw-r--r--files/OpenBSD/bin/restart_apache.sh (renamed from files/openbsd/bin/restart_apache.sh)0
-rw-r--r--files/OpenBSD/bin/restart_apache_ssl.sh (renamed from files/openbsd/bin/restart_apache_ssl.sh)0
3 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\"";'
diff --git a/files/openbsd/bin/restart_apache.sh b/files/OpenBSD/bin/restart_apache.sh
index 4dc936d..4dc936d 100644
--- a/files/openbsd/bin/restart_apache.sh
+++ b/files/OpenBSD/bin/restart_apache.sh
diff --git a/files/openbsd/bin/restart_apache_ssl.sh b/files/OpenBSD/bin/restart_apache_ssl.sh
index 314018b..314018b 100644
--- a/files/openbsd/bin/restart_apache_ssl.sh
+++ b/files/OpenBSD/bin/restart_apache_ssl.sh