logrotate: Suppress output from update-stats.
[matthijs/servers/drsnuggles.git] / etc / logrotate.d / data-www
1 /data/www/*/logs/*/*.log {
2         # Rotate daily
3         daily
4         # Keep them all
5         rotate 9999
6         # Compress files after rotation
7         compress
8         # But only a day after actually rotating them for the first
9         # time. See http://bugs.gentoo.org/106651
10         delaycompress
11         notifempty
12         # Use the current date as the extension for rotating
13         dateext
14         # lighttpd will create new files itself
15         nocreate
16         # Call this script once after rotating all files
17         sharedscripts
18         postrotate
19                 # Let lighttpd reopen its config files (HUP might be better,
20                 # but we'd have to look in pidfiles etc.)
21                 invoke-rc.d lighttpd reload > /dev/null;
22                 # Do stats analysis on the rotated files
23                 /usr/local/bin/update-stats --after-logrotate; > /dev/null;
24         endscript
25 }
26
27 # vim: set ts=8 sw=8 noexpandtab autoindent: