openntpd uses SIGINFO as a mechanism to dump current peer status to the logs, but linux doesn' support SIGINFO. On systems with SIGINFO, use SIGUSR1 instead. This patch is based on top of the pid file patch in bug 493082 and the attached ebuild is an update of that one too. Reproducible: Always
Created attachment 364398 [details, diff] patch to use SIGUSR1 if no SIGINFO is available
Created attachment 364400 [details] updated ebuild incorporating the patch
(In reply to Paul B. Henson from comment #0) > logs, but linux doesn' support SIGINFO. On systems with SIGINFO, use SIGUSR1 Arg; s/doesn'/doesn't/, s/with SIGINFO/without SIGINFO/
Thanks for the patch. Two annotations: 1) It is important to send SIGUSR1 to the child process. If you send the signal to the master, ntpd will terminate. 2) Currently I only see Dec 2 00:03:23 web4 ntpd[11311]: 1 out of 1 peers valid (and dead/invalid peers) in my syslog. Not much information. Would it be possible to add current offset and frequency information so the output would mirror "ntpdc -c loopinfo"? # ntpdc -c loopinfo offset: -0.000143 s frequency: -1.938 ppm poll adjust: 30 watchdog timer: 1012 s
(In reply to Thomas D. from comment #4) > Thanks for the patch. Hmm, I didn't get an email from bugzilla when you added a comment, not sure why. > 1) It is important to send SIGUSR1 to the child process. If you send the > signal to the master, ntpd will terminate. Yah, I noticed that. You'll only make that mistake once ;). I suppose it's more user friendly to explicitly ignore USR1 in the parent, I'll attach an updated patch to do so. > 2) Currently I only see > > (and dead/invalid peers) in my syslog. Not much information. Would it be > possible to add current offset and frequency information so the output would > mirror "ntpdc -c loopinfo"? From what I can tell, it dynamically calculates that info each time it tweaks the clock, it's not someplace the current log handler can get to. Adding that additional functionality would take more time than I have to spend on this, sorry...
Created attachment 364630 [details, diff] patch to use SIGUSR1 if no SIGINFO is available (v2)
Created attachment 364632 [details] updated ebuild incorporating patch
(In reply to Paul B. Henson from comment #6) > Created attachment 364630 [details, diff] [details, diff] > patch to use SIGUSR1 if no SIGINFO is available (v2) Looks good to me. Paul, if you think this is ready to become openntpd-20080406-r7, let me know.
I think it's good to go, you might want to combine it with the new bug 493358 though.
+*openntpd-20080406-r7 (10 Dec 2013) + + 10 Dec 2013; Christoph Junghans <ottxor@gentoo.org> + +files/openntpd-20080406-dns-timeout.patch, + +files/openntpd-20080406-signal.patch, +openntpd-20080406-r7.ebuild, + -files/openntpd.logrotate-20080406-r5, -openntpd-20080406-r6.ebuild, + metadata.xml: + fixed signal on linux (bug #493084), fixed dns-timeout (bug #493358), make + Paul maintainer +