Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2007 10:49:40 -0700 (PDT)
From:      Doug Barton <dougb@FreeBSD.org>
To:        John Marshall <John.Marshall@riverwillow.com.au>
Cc:        Brooks Davis <brooks@freebsd.org>, "Mike Telahun Makonnen <mtm@freebsd.org>; freebsd-rc@FreeBSD.Org" <freebsd-rc@freebsd.org>
Subject:   Re: How to debug rc hangs?
Message-ID:  <alpine.BSF.0.9999.0710231038070.14145@qbhto.arg>
In-Reply-To: <471E27E5.4030609@riverwillow.com.au>
References:  <471D7F68.8070308@riverwillow.com.au> <584bfc3f0710230505i29e8f19aofc4e66d0aee7b7c1@mail.gmail.com> <471DFFD0.8020701@riverwillow.com.au> <20071023155932.GA37204@lor.one-eyed-alien.net> <471E27E5.4030609@riverwillow.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-1398324669-1193161782=:14145
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Wed, 24 Oct 2007, John Marshall wrote:

> [blush] I actually fixed this 12 months ago on 6.n and forgot all about it. I 
> let the 7.0 mergemaster overwrite the rc.d/ypset because I didn't think I had 
> touched it.
>
> Here is the fix. All happy now - but not much the wiser as to rc 
> troubleshooting techniques.
>
> -----------------------------------------------
> --- /usr/src/etc/rc.d/ypset     2007-10-12 12:38:42.000000000 +1000
> +++ /etc/rc.d/ypset  2007-10-24 02:31:32.000000000 +1000
> @@ -5,6 +5,7 @@
>
> # PROVIDE: ypset
> # REQUIRE: ypbind
> +# BEFORE:  mountd
>
> . /etc/rc.subr

John,

Thanks for digging into this yourself, always nice when someone answers 
their own questions. :)

In regards to your proposed solution, I would like to explore this with 
you a little. In general it would be preferred to add REQUIRE: ypset in 
mountd instead of using BEFORE. This makes debugging easier down the road.

The other thing I'm interested in is the relationship between this change 
and the other yp* stuff. I've attached a patch that I use to debug the 
rcorder stuff. If you could copy your /etc/rc to a handy directory, apply 
the patch, and then run 'sh rc'. If you could do that before and after 
applying the change you suggested (using REQUIRE instead of BEFORE if you 
don't mind) I'd be interested if anything else changes besides the 
ypset/mountd relationship.

My concern is that in my rcorder (basically stock RELENG_6 with some 
ports) ypxfrd, ypudated, and ypset are all running in that order, and late 
in the overall order. I'm concerned that if we move ypset earlier (and 
mountd is run a lot earlier than those 3) it will have other side effects. 
I also noticed that ypserv and ypbind are run much than even mountd, and 
since I don't use NIS I don't really know what those side effects might be 
(if any).

I may be a little overcautious here, but experience has taught us that 
even seemingly small changes can have large and unanticipated 
consequences.

Doug

-- 

     This .signature sanitized for your protection

--0-1398324669-1193161782=:14145
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=rc-debug.patch
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.BSF.0.9999.0710231049400.14145@qbhto.arg>
Content-Description: 
Content-Disposition: attachment; filename=rc-debug.patch

LS0tIC9ldGMvcmMJMjAwNy0wNy0wNiAyMjoyNjowOS4wMDAwMDAwMDAgLTA3
MDANCisrKyByYwkyMDA3LTEwLTIzIDEwOjM1OjAzLjAwMDAwMDAwMCAtMDcw
MA0KQEAgLTg1LDggKzQ3LDEyIEBADQogIw0KIGZpbGVzPWByY29yZGVyICR7
c2tpcH0gL2V0Yy9yYy5kLyogMj4vZGV2L251bGxgDQogDQorIyBYWFgNCity
bSAtZiByYy5lYXJseSogcmMubGF0ZQ0KKw0KIGZvciBfcmNfZWxlbSBpbiAk
e2ZpbGVzfTsgZG8NCi0JcnVuX3JjX3NjcmlwdCAke19yY19lbGVtfSAke19i
b290fQ0KKwkjcnVuX3JjX3NjcmlwdCAke19yY19lbGVtfSAke19ib290fQ0K
KwllY2hvICRfcmNfZWxlbSA+PiByYy5lYXJseTENCiANCiAJY2FzZSAiJF9y
Y19lbGVtIiBpbg0KIAkqLyR7ZWFybHlfbGF0ZV9kaXZpZGVyfSkJYnJlYWsg
OzsNCkBAIC0xMDcsMTYgKzczLDIyIEBADQogX3NraXBfZWFybHk9MQ0KIGZv
ciBfcmNfZWxlbSBpbiAke2ZpbGVzfTsgZG8NCiAJY2FzZSAiJF9za2lwX2Vh
cmx5IiBpbg0KLQkxKQljYXNlICIkX3JjX2VsZW0iIGluDQorCTEpDQorCQll
Y2hvICRfcmNfZWxlbSA+PiByYy5lYXJseTINCisJCWNhc2UgIiRfcmNfZWxl
bSIgaW4NCiAJCSovJHtlYXJseV9sYXRlX2RpdmlkZXJ9KQlfc2tpcF9lYXJs
eT0wIDs7DQogCQllc2FjDQogCQljb250aW51ZQ0KIAkJOzsNCiAJZXNhYw0K
IA0KLQlydW5fcmNfc2NyaXB0ICR7X3JjX2VsZW19ICR7X2Jvb3R9DQorCWVj
aG8gJF9yY19lbGVtID4+IHJjLmxhdGUNCisNCisJI3J1bl9yY19zY3JpcHQg
JHtfcmNfZWxlbX0gJHtfYm9vdH0NCiBkb25lDQogDQorZGlmZiAtdSByYy5l
YXJseSoNCisNCiBlY2hvICcnDQogZGF0ZQ0KIGV4aXQgMA0K

--0-1398324669-1193161782=:14145--



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