summaryrefslogtreecommitdiff
path: root/files/OpenBSD/bin/apache_logrotate.sh
blob: c8614f8579cd11bf58e3e0bd4d202376e32c1dd1 (plain)
1
2
3
4
5
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\"";'