/var/log/apache2/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
/etc/init.d/apache2 reload > /dev/null
endscript
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi; \
endscript
}
/var/svn/logs/*.log /var/svn/logs/svn_logfile {
weekly
missingok
rotate 52
notifempty
create 640 www-data www-data
sharedscripts
postrotate
/etc/init.d/apache2 reload > /dev/null
endscript
compress
notifempty
}
Tuesday, July 29, 2014
sigh. i want to rotate this silly svn logs. i put it with the apache2 conf file, because, well, it is controlled by apache.
i could totally add more in the first stanza but... the perms are off. root adm is not www-data www-data
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment