The FreeBSD ntpd(8) daemon logs to the LOG_NTP facility. Users who replace this daemon with the openntpd port might expect the same behaviour. As OpenNTPD is developed by the OpenBSD project, where syslog(3) does not include LOG_NTP, their daemon uses the LOG_DAEMON facility. These logs are faily verbose: Jun 29 20:42:27 irk ntpd[719]: ntp engine ready Jun 29 20:42:44 irk ntpd[719]: peer 10.10.10.2 now valid Jun 29 20:43:39 irk ntpd[718]: adjusting local clock by 1.180681s Jun 29 20:45:48 irk ntpd[718]: adjusting local clock by 1.180783s Jun 29 20:46:22 irk ntpd[718]: adjusting local clock by 0.786388s Jun 29 20:50:42 irk ntpd[718]: adjusting local clock by 0.668906s Jun 29 20:55:06 irk ntpd[718]: adjusting local clock by 0.606314s Jun 29 20:57:13 irk ntpd[718]: adjusting local clock by 0.491739s Jun 29 21:00:26 irk ntpd[718]: adjusting local clock by 0.373368s Jun 29 21:04:15 irk ntpd[718]: adjusting local clock by 0.241557s Jun 29 21:12:01 irk ntpd[718]: adjusting local clock by 0.138065s Jun 29 21:37:28 irk ntpd[718]: adjusting local clock by -0.134400s It would be preferable for these logs to end up in the same place as other NTP messages. Fix: This patch changes the default syslog facility to LOG_NTP. Users who prefer the current behaviour can build the port with SYSLOG_FACILITY=LOG_DAEMON How-To-Repeat: 1. Configure syslogd(8) to send NTP messages to their own logfile 2. Install and start openntpd 3. Wonder why the logfile is empty
Responsible Changed From-To: freebsd-ports-bugs->naddy Over to maintainer
naddy 2007-07-08 15:05:27 UTC FreeBSD ports repository Modified files: net/openntpd Makefile Added files: net/openntpd/files patch-log.c Log: Use LOG_NTP syslog facility. PR: 114191 Submitted by: Robert Archer <freebsd@deathbeforedecaf.net> Revision Changes Path 1.15 +1 -0 ports/net/openntpd/Makefile 1.1 +25 -0 ports/net/openntpd/files/patch-log.c (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Thanks, committed in somewhat different form.