diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2004-07-13 19:51:39 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2004-07-13 19:51:39 +0000 |
commit | ae5e43b6a0c38853f6c1c27a8915b9886f944c39 (patch) | |
tree | 1db19eee0776b9dc907dfe0e1e3bab9182fd2d80 /usr.sbin/ntpd | |
parent | 4ee086ea1118fc386cc2411cd0a809afdb9685bc (diff) |
tweaks; ok henning@
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r-- | usr.sbin/ntpd/ntpd.8 | 54 | ||||
-rw-r--r-- | usr.sbin/ntpd/ntpd.conf.5 | 19 |
2 files changed, 49 insertions, 24 deletions
diff --git a/usr.sbin/ntpd/ntpd.8 b/usr.sbin/ntpd/ntpd.8 index 2fe042b17da..4717842e446 100644 --- a/usr.sbin/ntpd/ntpd.8 +++ b/usr.sbin/ntpd/ntpd.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ntpd.8,v 1.4 2004/07/09 19:33:09 jmc Exp $ +.\" $OpenBSD: ntpd.8,v 1.5 2004/07/13 19:51:38 jmc Exp $ .\" .\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> .\" @@ -29,25 +29,55 @@ .Sh DESCRIPTION The .Nm -daemon implements the Simple Network Time Protocol version 4 as described -in RFC 2030 and the Network Time Protocol version 3 as described in RFC 1305. -It can synchronize the local clock to one or more remote NTP servers and act -as NTP server itself, redistributing the local time. +daemon synchronizes the local clock to one or more remote NTP servers, +and can also act as an NTP server itself, +redistributing the local time. +It implements the Simple Network Time Protocol version 4, +as described in RFC 2030, +and the Network Time Protocol version 3, +as described in RFC 1305. +.Pp +.Nm +is usually started at boot time, and can be enabled by +setting the following in +.Pa /etc/rc.conf.local : +.Pp +.Dl ntpd_flags=\&"\&" +.Pp +See +.Xr rc 8 +and +.Xr rc.conf 8 +for more information on the boot process +and enabling daemons. +.Pp +When +.Nm +starts up, it reads settings from a configuration file, +typically +.Xr ntpd.conf 5 . +.Pp The options are as follows: -.Bl -tag -width Ds +.Bl -tag -width "-f fileXXX" .It Fl d -Do not daemonize and log to +Do not daemonize. +If this option is specified, +.Nm +will run in the foreground and log to .Em stderr . .It Fl f Ar file -Specify an alternate location, -.Ar file , -for the configuration file. +Use +.Ar file +as the configuration file, +instead of the default +.Pa /etc/ntpd.conf . .El .Sh FILES -.Bl -tag -width "/etc/ntpd.conf" -compact +.Bl -tag -width "/etc/ntpd.confXXX" -compact .It Pa /etc/ntpd.conf +default .Nm -configuration file. +configuration file .El .Sh SEE ALSO .Xr date 1 , diff --git a/usr.sbin/ntpd/ntpd.conf.5 b/usr.sbin/ntpd/ntpd.conf.5 index 2ba943a2132..927b1d587b7 100644 --- a/usr.sbin/ntpd/ntpd.conf.5 +++ b/usr.sbin/ntpd/ntpd.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ntpd.conf.5,v 1.6 2004/07/09 14:56:57 jaredy Exp $ +.\" $OpenBSD: ntpd.conf.5,v 1.7 2004/07/13 19:51:38 jmc Exp $ .\" .\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> .\" @@ -21,15 +21,10 @@ .Nm ntpd.conf .Nd Network Time Protocol daemon configuration file .Sh DESCRIPTION -The +This manual page describes the format of the .Xr ntpd 8 -daemon implements the Network Time Protocol -.Pq NTP -version 4. -This manual page describes the format of its configuration file, -.Nm . -.Pp -The configuration file has the following format: +configuration file. +It has the following format: .Pp Empty lines and lines beginning with the .Sq # @@ -85,14 +80,14 @@ servers pool.ntp.org .Ed .El .Sh FILES -.Bl -tag -width "/etc/ntpd.conf" -compact +.Bl -tag -width "/etc/ntpd.confXXX" -compact .It Pa /etc/ntpd.conf +default .Xr ntpd 8 configuration file .El .Sh SEE ALSO -.Xr ntpd 8 , -.Xr rdate 8 +.Xr ntpd 8 .Sh HISTORY The .Nm |