Browse Source

tweaks; ok henning@

OPENBSD_3_6
jmc 21 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> .\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
.\" .\"
@ -29,25 +29,55 @@
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
daemon implements the Simple Network Time Protocol version 4 as described daemon synchronizes the local clock to one or more remote NTP servers,
in RFC 2030 and the Network Time Protocol version 3 as described in RFC 1305. and can also act as an NTP server itself,
It can synchronize the local clock to one or more remote NTP servers and act redistributing the local time.
as 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: The options are as follows:
.Bl -tag -width Ds .Bl -tag -width "-f fileXXX"
.It Fl d .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 . .Em stderr .
.It Fl f Ar file .It Fl f Ar file
Specify an alternate location, Use
.Ar file , .Ar file
for the configuration file. as the configuration file,
instead of the default
.Pa /etc/ntpd.conf .
.El .El
.Sh FILES .Sh FILES
.Bl -tag -width "/etc/ntpd.conf" -compact .Bl -tag -width "/etc/ntpd.confXXX" -compact
.It Pa /etc/ntpd.conf .It Pa /etc/ntpd.conf
default
.Nm .Nm
configuration file. configuration file
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr date 1 , .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> .\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
.\" .\"
@ -21,15 +21,10 @@
.Nm ntpd.conf .Nm ntpd.conf
.Nd Network Time Protocol daemon configuration file .Nd Network Time Protocol daemon configuration file
.Sh DESCRIPTION .Sh DESCRIPTION
The This manual page describes the format of the
.Xr ntpd 8 .Xr ntpd 8
daemon implements the Network Time Protocol configuration file.
.Pq NTP It has the following format:
version 4.
This manual page describes the format of its configuration file,
.Nm .
.Pp
The configuration file has the following format:
.Pp .Pp
Empty lines and lines beginning with the Empty lines and lines beginning with the
.Sq # .Sq #
@ -85,14 +80,14 @@ servers pool.ntp.org
.Ed .Ed
.El .El
.Sh FILES .Sh FILES
.Bl -tag -width "/etc/ntpd.conf" -compact .Bl -tag -width "/etc/ntpd.confXXX" -compact
.It Pa /etc/ntpd.conf .It Pa /etc/ntpd.conf
default
.Xr ntpd 8 .Xr ntpd 8
configuration file configuration file
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr ntpd 8 , .Xr ntpd 8
.Xr rdate 8
.Sh HISTORY .Sh HISTORY
The The
.Nm .Nm


|||||||
|||||||
xxxxxxxxxx
 
000:0
x
 
000:0
Loading…
Cancel
Save