[Dnsmasq-discuss] SIGHUP issue

C V rayvittal-lists at yahoo.com
Wed Feb 13 22:17:07 GMT 2013





> Sent: Wed, February 13, 2013 12:19:51 PM
> Subject: [Dnsmasq-discuss] SIGHUP issue
> 

> The only 1 time I have been able to reproduce  by hand is by trying it on a 
> long-running (many days) process in a cloud  that was not being used actively.
> 


OK this part is reproducible and may not be the real problem. In this case the 
logrotate causes dnsmasq to not write to the new dnsmasq.log file. It writes to 
the old file (dnsmasq.log-20130213). The logs indicate that SIGHUP indeed is 
processed.

There is a bug in our logrotate config
postrotate
        [ ! -f /var/run/dnsmasq.pid ] || kill -USR2 `cat /var/run/dnsmasq.pid`

should be
postrotate
        [ ! -f /var/run/dnsmasq.pid ] || kill -USR2 `cat 
/var/run/dnsmasq/dnsmasq.pid`




More information about the Dnsmasq-discuss mailing list