Browse Source

tweaks; ok henning@

OPENBSD_3_6
jmc 20 years ago
parent
commit
a509bb097c
2 changed files with 49 additions and 24 deletions
  1. +42
    -12
      src/usr.sbin/ntpd/ntpd.8
  2. +7
    -12
      src/usr.sbin/ntpd/ntpd.conf.5

+ 42
- 12
src/usr.sbin/ntpd/ntpd.8 View File

@ -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 ,


+ 7
- 12
src/usr.sbin/ntpd/ntpd.conf.5 View File

@ -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


Loading…
Cancel
Save