Selon Peter <[EMAIL PROTECTED]>: > Hi. What is the best way to rotate apache logs on OpenBSD? Ideally I > would like to create a new one at the beginning of each month. I > searched my system for logrotate and could not find it. > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com
You can use newyslog for that. ie. in your /etc/newsyslog.conf /var/www/logs/access_log 644 31 * $M1D0 Z "(apachectl stop; (while `pgrep httpd > /dev/null 2>&1`; do sleep 1; done); apachectl start) >/dev/null" /var/www/logs/error_log 644 31 * $M1D0 Z "(apachectl stop; (while `pgrep httpd > /dev/null 2>&1`; do sleep 1; done); apachectl start) >/dev/null" -- Antoine