Bug 114191 - [patch] net/openntpd should use syslog facility LOG_NTP
Summary: [patch] net/openntpd should use syslog facility LOG_NTP
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Christian Weisgerber
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-01 16:20 UTC by Robert Archer
Modified: 2007-07-08 16:10 UTC (History)
0 users

See Also:


Attachments
file.diff (563 bytes, patch)
2007-07-01 16:20 UTC, Robert Archer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Archer 2007-07-01 16:20:03 UTC
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
Comment 1 Edwin Groothuis freebsd_committer 2007-07-01 16:20:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->naddy

Over to maintainer
Comment 2 dfilter service freebsd_committer 2007-07-08 16:05:32 UTC
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"
Comment 3 Christian Weisgerber freebsd_committer 2007-07-08 16:05:39 UTC
State Changed
From-To: open->closed

Thanks, committed in somewhat different form.