logrotate dnsmasq logs

This commit is contained in:
Chiradeep Vittal 2010-10-06 14:06:41 -07:00
parent 6f8990f825
commit 5a4d410cdf
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
/var/log/dnsmasq.log {
daily
missingok
rotate 5
notifempty
delaycompress
sharedscripts
postrotate
[ ! -f /var/run/dnsmasq.pid ] || kill -USR2 `cat /var/run/dnsmasq.pid`
endscript
create 0640 dnsmasq dnsmasq
}