Subject: misc/12278: /etc/rc.d/ntpd should REQUIRE ntpdate
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
List: netbsd-bugs
Date: 02/24/2001 16:20:48
>Number: 12278
>Category: misc
>Synopsis: ntpd should require ntpdate
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 24 13:21:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Michael Richardson
>Release: NetBSD 1.5
>Organization:
Sandelman Software Works
>Environment:
System: NetBSD istari.sandelman.ottawa.on.ca 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (SSW) #21: Sun Oct 15 19:35:12 EDT 2000 root@:/j/netbsd/obj/SSW i386
>Description:
ntpdate should be run upon boot, or ntpd may be too far out to
sync up.
>How-To-Repeat:
break your clock, reboot.
>Fix:
#!/bin/sh
#
# $NetBSD: ntpd,v 1.2 2000/05/13 08:45:07 lukem Exp $
#
# PROVIDE: ntpd
# REQUIRE: DAEMON ntpdate
. /etc/rc.subr
name="ntpd"
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/etc/ntp.conf"
load_rc_config $name
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted: