Paul Chambers wrote:
> Is there some reason you can't use logrotate? -- Paul
>
> http://linux.die.net/man/8/logrotate
> http://www.linux.com/articles/48390
>
That would be my suggestion. The right options are something like
delaycompress
create
postrotate
kill -USR2 `cat /var/run/dnsmasq.pid`
This is mentioned in the man page.
Cheers,
Simon.