Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2002 01:31:26 +0300 (MSK)
From:      Sergey Mokryshev <mokr@mokr.net>
To:        Mike Makonnen <mtm@identd.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: rc_ng breakage introduced with src/etc/rc.d/Makefile 1.5
Message-ID:  <20021128010130.B620-100000@lemori.mokr.ru>
In-Reply-To: <20021127140605.GA31126@matrix.identd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 27 Nov 2002, Mike Makonnen wrote:

> On Wed, Nov 27, 2002 at 02:08:40AM +0300, Sergey Mokryshev wrote:
> >
> > Yes, I don't see these errors. But some scripts can change execution order
> > without anchors like "mountall"
> >
> > For example, adding ldconfig dependancy directly into named brings
> > this order:
> >
> > root@girvas-gw:/etc/rc.d# rcorder -k FreeBSD -s nostart * 2>/dev/null
> > ldconfig
> > initdiskless
> > initrandom
> > dumpon
> > vinum
> > ....
> >
> >
> > Isn't this wrong?
>
> I'm not in front of a -current box right now so I can't test it, but
> generally if you change the default order of the scripts you _may_ need to
> modify one or more BEFORE or REQUIRE lines. That's what they are there
> for after all.
>
Dear Mike,

here are two scenarios, one with 'mountall' installed and another one
without.

I've changed named at first (remember, the problem which lead me to dig
/etc/rc.d futher was missing /usr/local/lib in linker hints at the time
of named load)

# diff -du /etc/rc.d/named.orig /etc/rc.d/named
--- /etc/rc.d/named.orig        Thu Nov 28 01:06:18 2002
+++ /etc/rc.d/named     Thu Nov 28 01:06:26 2002
@@ -5,7 +5,7 @@
 #

 # PROVIDE: named
-# REQUIRE: SERVERS
+# REQUIRE: SERVERS ldconfig
 # BEFORE:  DAEMON
 # KEYWORD: FreeBSD NetBSD


------
With 'mountall' and other old scripts:

root@amber:/etc/rc.d# rcorder -k FreeBSD -s nostart * 2>/dev/null
initdiskless
initrandom
dumpon
vinum
ccd
swap1
fsck
root
mountcritlocal
diskless
addswap
ttys
ipsec
ipfilter
sysctl
random
adjkerntz
atm1
cleanvar
sppp
serial
pccard
network1
ppp-user
ipfw
atm2.sh
network2
ip6fw
network_ipv6
NETWORKING
mountcritremote
lomac
syslogd
>>>>>>>>>>ldconfig
ipmon
isdnd
savecore
SERVERS
>>>>>>>>>>named

....

ldconfig gets proper anchoring and seems to be placed
in the right place (all filesystems should be mounted
at this point)

-----
This is  from the fresh installation.
rc.d/mountd is modified as shown above, no other changes in /etc/rc.d/*
was made.

root@girvas-gw:/etc/rc.d# rcorder -k FreeBSD -s nostart * 2>/dev/null
>>>>>>>>>>ldconfig
initdiskless
initrandom
dumpon
vinum
ccd
swap1
....


ldconfig does not have proper anchor and is mistakenly ordered to run
first (without any filesystems mounted (except R/O root) yet).




* So I'm complaining mostly about removing files without fixing
dependencies in the remaining scripts *

Unfortunately I don't have time now to dig in and make patches.
Also FreeBSD is in code freeze and I don't think that there is time left
to properly check system startup in all scenarios (seems to dangerous to
me).

Probably the best solution is to backout rev 1.5 of
src/etc/rc.d/Makefile. It was tested before 5.0-DP2 and it just
works.


Sincerely yours,
Sergey Mokryshev.

-- 
Sergey S. Mokryshev <mokr@mokr.net>
SMP453, MOKR-RIPN




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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