SIGHUP catcher, issue #78

Hal Murray hmurray at megapathdsl.net
Sun Jul 10 10:32:55 UTC 2016


I just pushed code that catches SIGHUP and reopens the log file if it has 
changed and checks for a new leapseconds file.  You can poke it by hand with
  killall -HUP ntpd

We should get a chance to test the new leap file stuff soon.  It's time for a 
new one.  Besides, a day or two ago, the news said they announced one for the 
end of this year so we'll get to test the run time too.

I think there is a script to fetch a new leap file.  This could be added to 
it.

For logrotate on Linux, you can put a fragment like
this in /etc/logrotate.d/ntpd

/var/log/ntp/ntpd.log {
    monthly
    postrotate
      /usr/bin/killall -HUP ntpd
    endscript
    rotate 9999
}


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list