SUMMARY: rc script invokes ed

From: kdea@alpine-la.com
Date: Thu Jul 24 2003 - 08:19:58 EDT


Hi Managers,

Huge kudos goes to Kazuro Furukawa who figured out 95% of the problem,
with my vague (and bizzare) symptoms and within 10 minutes of my query.
The assist goes to Mark Deiss for suggesting how to to debug for it. And
thanks to Dr Blinn and Paul A Sand for moral support (they were sending me
helpful suggestions as I was typing tthe summary email).

Kazuro's answer reminded me that I did edit the rc.config file before the
problems started. So I knew this HAD to be the root of the problem, even
though I could not find an "ed" or "ex" (which was VERY likely considering
all the times "export" is in there). I used Mark's suggestion to output
using:

#sh -x /sbin/init.d/nfs start 2>&1 | tee /tmp/logger

At first, I didn't notice anything out of the ordinary, with "ed" or "ex"
in it. But after some hard staring, I found a line with "e". I didn't
even know there was a command called "e". Sure enough, "/sbin/e" is
another name for "ed". So "e" was being invoked.

I looked at the rc.config file some more, until I looked at the part that
I would never bother to check, the copyright information. One of the hash
marks was an "e". Changing it back to a hash mark fixed everything.

Thanks again to everyone.

Kevin

--
Kevin Dea
UNIX System Administrator
Alpine Electronics Research of America
---Kazuro's answer---
Hi Kevin, 
My guess is that you corrupted /etc/rc.config or /etc/rc.config.common 
to have a line of "ex" instead of "export XXX", which invokes "ex" 
editor :-).  /etc/rc.config is source'ed from many rc scripts. 
Cheers.
Kazuro FURUKAWA
---ORIGINAL PROBLEM---
> Has anyone seen this before, while booting and starting the rc scripts 
on 
> certain scripts, it outputs a question mark and and just waits.  I just 
> realized that it's invoking the "ed" editor.  I need to type "q" to quit 
> it before it goes on.  I have to keep typing "q" just to get it to boot. 
> I'm not sure how many times this needs to be done, but it's at least 5 
> times. 
> 
> After it finishes booting, only certain rc scripts exhibits this 
behavior 
> when I stop and start it, I know "nfs", "nfsmount", "write" is doing it. 
> I'm quite sure there's a few more.
> 
> This is nearly a brand new install. 


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:28 EDT