NetBSD Problem Report #40707

From www@NetBSD.org  Sat Feb 21 11:42:17 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 622CE63BB35
	for <gnats-bugs@gnats.netbsd.org>; Sat, 21 Feb 2009 11:42:17 +0000 (UTC)
Message-Id: <20090221114217.3337863B8C3@narn.NetBSD.org>
Date: Sat, 21 Feb 2009 11:42:17 +0000 (UTC)
From: pkgsrc@blackmouse.biz
Reply-To: pkgsrc@blackmouse.biz
To: gnats-bugs@NetBSD.org
Subject: ntpdate starts later then ntp
X-Send-Pr-Version: www-1.0

>Number:         40707
>Category:       pkg
>Synopsis:       ntpdate starts later then ntp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 21 11:45:00 +0000 2009
>Closed-Date:    Mon Aug 03 18:48:26 +0000 2009
>Last-Modified:  Mon Aug 03 18:48:26 +0000 2009
>Originator:     Ondrej Tuma
>Release:        current
>Organization:
Blackmouse
>Environment:
Linux domU0 2.6.18.8-xenU #1 SMP Sun Aug 24 14:00:52 CEST 2008 i686 prescott i386 GNU/Linux
>Description:
I use both of ntp rc scripts in cooperate with rcorder. The idea is then ntpdate checks time and do big seting up, and ntpd keeps time right.

But ntpd starts before ntpdate.
>How-To-Repeat:
rcorder $RCD_SCRIPTS_DIR/*
>Fix:
So here is the patch to ntpdate starts before ntpd :)

--- /usr/pkg/share/examples/rc.d/ntpdate	2009-02-16 12:48:58.000000000 +0100
+++ ntpdate	2009-02-21 11:48:02.000000000 +0100
@@ -5,6 +5,7 @@

 # PROVIDE: ntpdate
 # REQUIRE: NETWORKING syslogd
+# BEFORE: ntpd

 . /etc/rc.subr


>Release-Note:

>Audit-Trail:
From: "Perry E. Metzger" <perry@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/40707 CVS commit: src/etc/rc.d
Date: Mon, 3 Aug 2009 18:43:49 +0000

 Module Name:	src
 Committed By:	perry
 Date:		Mon Aug  3 18:43:49 UTC 2009

 Modified Files:
 	src/etc/rc.d: ntpdate

 Log Message:
 Explicitly set a BEFORE on ntpd, as this can't run while ntpd is
 running.

 Apparently it is rare for rcorder to place it after ntpd but there was
 previously nothing actually preventing it.

 Fixes PR 40707 by Ondrej Tuma


 To generate a diff of this commit:
 cvs rdiff -u -r1.19 -r1.20 src/etc/rc.d/ntpdate

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: perry@NetBSD.org
State-Changed-When: Mon, 03 Aug 2009 18:48:26 +0000
State-Changed-Why:
fixed as requested


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.