Internet: Lighttpd logrotation
Logrotation with Lighttpd can be handled as follows:
- move old logfiles.
- send lighttpd process a SIGHUP (kill -1) signal.
or use a logrotate script/daemon like the newsyslog script in FreeBSD.
In FreeBSD:
add the access.log and error.log to /etc/newsyslog.conf
example :
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/var/log/www/lighttpd.access.log 644 7 * @T00 J /var/run/lighttpd.pid
/var/log/www/lighttpd.error.log 644 7 * @T00 J /var/run/lighttpd.pid
see : man newsyslog.conf for more information.
Posted by Administrator on Monday, February 05, 2007

