ntpdate can't work without named because a modern ntp.conf has dns

names in it. We therefore now depend on it.

However, this would have then created a circular dependency because named
depended on "SERVERS", and racoon was before SERVERS and required kdc,
and kdc needs the time to be right and thus depended on ntp.

Instead, have named depend on NETWORKING (so that there is a network
there), mountcritremote (so we know that named has a directory to work
from) and syslogd (so that named has some place to spew information).

I'm not sure this is perfect, but it is certainly a big improvement
over constantly failing ntpdate runs during boot.
This commit is contained in:
perry 2009-08-03 17:45:48 +00:00
parent 4b41fced4d
commit b3d763cf9b
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
#!/bin/sh
#
# $NetBSD: named,v 1.21 2009/04/25 15:46:19 christos Exp $
# $NetBSD: named,v 1.22 2009/08/03 17:45:48 perry Exp $
#
# PROVIDE: named
# REQUIRE: SERVERS
# REQUIRE: NETWORKING mountcritremote syslogd
# BEFORE: DAEMON
# KEYWORD: chrootdir

View File

@ -1,10 +1,10 @@
#!/bin/sh
#
# $NetBSD: ntpdate,v 1.18 2005/03/15 12:06:12 lukem Exp $
# $NetBSD: ntpdate,v 1.19 2009/08/03 17:45:48 perry Exp $
#
# PROVIDE: ntpdate
# REQUIRE: NETWORKING mountcritremote syslogd
# REQUIRE: NETWORKING mountcritremote syslogd named
$_rc_subr_loaded . /etc/rc.subr