Red Hat Bugzilla – Bug 17379
SIGHUP kills ntpd
Last modified: 2008-05-01 11:37:58 EDT
I installed ntp-4.0.99j-6 and tried to configure the statistics logs in the
way RedHat usually does. So, in /etc/ntp.conf I added:
filegen loopstats file loopstats type none enable
This generates a growing file '/var/log/ntp/loopstats' that I want to pass
through logrotate. However, when /bin/kill -HUP `pidof ntpd` is executed in
the postrotate processing, ntpd dies. And otherwise, ntp does not close and
reopen the file descriptors.
ntpd, because it's trying to maintain sub-millisecond accuracy, does not (and
honor "killall -HUP ntpd" commands like other daemons.
Meanwhile, there's a mechanism using ntpdc with the filegen command to tell a
ntpd program to change log files, and you should be able to write a logrotate
that uses that mechanism if that's your desire. See the ntpd html documentation
Meanwhile, I'm closing this as WONTFIX because adding SIGHUP restart support to
not gonna happen. Feel free to reopen this with a working logrotate script that
ntpdc and filegen, and I'll add the script as an example to the ntp package.