Bug 17379

Summary: SIGHUP kills ntpd
Product: [Retired] Red Hat Raw Hide Reporter: Olivier Baudron <olivier.baudron>
Component: ntpAssignee: Preston Brown <pbrown>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: redhat
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-09-09 14:52:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Olivier Baudron 2000-09-09 14:52:03 UTC
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:

statsdir /var/log/ntp/
statistics loopstats
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.

Comment 1 Jeff Johnson 2000-10-18 17:44:23 UTC
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
ntpd is
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.