Bug 17379 - SIGHUP kills ntpd
SIGHUP kills ntpd
Product: Red Hat Raw Hide
Classification: Retired
Component: ntp (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Preston Brown
Depends On:
  Show dependency treegraph
Reported: 2000-09-09 10:52 EDT by Olivier Baudron
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-09-09 10:52:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Olivier Baudron 2000-09-09 10:52:03 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:

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 13:44:23 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.