2013-01-13 20:20:52 +01:00
|
|
|
/var/log/lighttpd2/access.log /var/log/lighttpd2/error.log {
|
2012-09-08 11:40:57 +02:00
|
|
|
daily
|
|
|
|
missingok
|
|
|
|
copytruncate
|
2013-01-13 20:20:52 +01:00
|
|
|
rotate 30
|
|
|
|
create 0644 lighttpd root
|
2012-09-08 11:40:57 +02:00
|
|
|
compress
|
|
|
|
notifempty
|
2013-01-13 20:20:52 +01:00
|
|
|
su lighttpd root
|
2012-09-08 11:40:57 +02:00
|
|
|
sharedscripts
|
|
|
|
postrotate
|
2013-01-13 20:20:52 +01:00
|
|
|
if [ -x /etc/rc.d/rc.lighttpd2 -a -f /var/run/lighttpd2/lighttpd2.pid ]; then
|
|
|
|
/etc/rc.d/rc.lighttpd2 restart
|
|
|
|
fi
|
|
|
|
endscript
|
|
|
|
}
|
|
|
|
|
|
|
|
/var/log/lighttpd2/lighttpd2.log {
|
|
|
|
daily
|
|
|
|
missingok
|
|
|
|
copytruncate
|
|
|
|
rotate 30
|
|
|
|
create 0644 root root
|
|
|
|
compress
|
|
|
|
notifempty
|
|
|
|
sharedscripts
|
|
|
|
postrotate
|
|
|
|
if [ -x /etc/rc.d/rc.lighttpd2 -a -f /var/run/lighttpd2/lighttpd2.pid ]; then
|
|
|
|
/etc/rc.d/rc.lighttpd2 restart
|
2012-09-08 11:40:57 +02:00
|
|
|
fi
|
|
|
|
endscript
|
|
|
|
}
|