0050f9ec3c
calls to ntpd -g. ntpd is noticably slower than ntpdate, but is also more accurate. This removes the nasty hackery in rc.d/ntpdate that would parse out ntp servers from /etc/ntp.conf (ntpd knows how to read its own config file). By default, ntpd *will* sync with its listed time servers. To turn this off so that ntpd does not sync, ntpd_sync_on_start="NO" can be added to /etc/rc.conf. If ntpd is not enabled (the default), then time is not synced on startup. ntpdate's use has been depreciated by the ntpd authors for quite some time so this change shouldn't be unexpected. Suggested by: des Approved by: roberto (resident ntp guru)
19 lines
283 B
Bash
Executable File
19 lines
283 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: rpcbind,v 1.6 2002/01/31 01:26:06 lukem Exp $
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: rpcbind
|
|
# REQUIRE: NETWORKING ntpd syslogd named
|
|
# KEYWORD: FreeBSD
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="rpcbind"
|
|
rcvar=`set_rcvar`
|
|
command="/usr/sbin/${name}"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|