.TH NTPD 8 "July 9, 2004" "" .SH NAME \fBntpd\fP \- "Network Time Protocol daemon" .SH SYNOPSIS .br \fBntpd\fP [\fB\-dSs\fP] [\fB\-f\fP \fIfile\fP] .SH DESCRIPTION The \fBntpd\fP 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. \fBntpd\fP uses the \fBadjtime\fP(2) system call to correct the local system time without causing time jumps. Adjustments larger than 128ms are logged using \fBsyslog\fP(3). The threshold value is chosen to avoid having local clock drift thrash the log files. Should \fBntpd\fP be started with the \fB\-d\fP option, all calls to \fBadjtime\fP(2) will be logged. \fBntpd\fP is usually started at boot time, and can be enabled by setting the following in \fI/etc/rc.conf\fP: Dl openntpd_enable=\&"YES\&" See \fBrc\fP(8) and \fBrc.conf\fP(5) for more information on the boot process and enabling daemons. When \fBntpd\fP starts up, it reads settings from a configuration file, typically \fBntpd.conf\fP(5). The options are as follows: .TP \fB\-d\fP Do not daemonize. If this option is specified, \fBntpd\fP will run in the foreground and log to .IR stderr . .TP \fB\-f\fP \fIfile\fP Use \fIfile\fP as the configuration file, instead of the default \fI/usr/local/etc/ntpd.conf\fP. .TP \fB\-S\fP Do not set the time immediately at startup. This is the default. .TP \fB\-s\fP Set the time immediately at startup if the local clock is off by more than 180 seconds. Allows for a large time correction, eliminating the need to run \fBrdate\fP(8) before starting \fB.\fP .SH FILES .TP .B /usr/local/etc/ntpd.conf default \fBntpd\fP configuration file .SH SEE ALSO \fBdate\fP(1), \fBadjtime\fP(2), \fBntpd.conf\fP(5), \fBrc.conf\fP(5), \fBrc\fP(8), \fBrdate\fP(8), \fBtimed\fP(8) , \fINetwork Time Protocol (Version 3)\fP, March 1992. , \fISimple Network Time Protocol (SNTP) Version 4\fP, October 1996. .SH HISTORY The \fBntpd\fP program first appeared in OpenBSD 3.6 .