Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2005 15:42:56 +0200 (CEST)
From:      Andre Albsmeier <Andre.Albsmeier@siemens.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   conf/82526: /etc/rc.d/ntpd is being started too early
Message-ID:  <200506221342.j5MDguZR004393@curry.mchp.siemens.de>
Resent-Message-ID: <200506221350.j5MDo8dR061518@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         82526
>Category:       conf
>Synopsis:       /etc/rc.d/ntpd is being started too early
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 22 13:50:08 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Andre Albsmeier
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:

	System: FreeBSD 5.4-STABLE #3: Wed Jun 22 08:46:11 CEST 2005
	HP GPS receiver attached to cuaa0

>Description:

To make ntpd use an HP GPS receiver as time reference it needs
a symlink from /dev/cuaa0 to /dev/hpgps0 which can be created
by an appropriate entry in /etc/devfs.conf.

However, devfs.conf rules are currently aplied after ntpd
had been started and that's why ntpd won't see the link.

>How-To-Repeat:

Try to sync ntpd to an HP GPS receiver using /dev/hpgps0.

>Fix:

--- /etc/rc.d/ntpd.ORI	Wed Apr 20 15:24:32 2005
+++ /etc/rc.d/ntpd	Wed Jun 22 15:30:10 2005
@@ -5,8 +5,7 @@
 #
 
 # PROVIDE: ntpd
-# REQUIRE: DAEMON
-# BEFORE:  LOGIN
+# REQUIRE: DAEMON devfs
 # KEYWORD: nojail
 
 . /etc/rc.subr


I had to remove the BEFORE: statement before rcorder would
have complained otherwise:

root@timefix:~>rcorder /etc/rc.d/* >/dev/null
rcorder: Circular dependency on provision `LOGIN' in file `/etc/rc.d/devfs'.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506221342.j5MDguZR004393>