From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kdea@alpine-la.com Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: rc script invokes ed Date: Thu, 24 Jul 2003 05:19:58 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1059049184 4119 80.91.224.249 (24 Jul 2003 12:19:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2003 12:19:44 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Jul 24 14:19:42 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19ff3w-00010s-00 for ; Thu, 24 Jul 2003 14:19:12 +0200 Original-Received: (qmail 31887 invoked by uid 5); 24 Jul 2003 12:20:16 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 31877 invoked by uid 49493); 24 Jul 2003 12:20:14 -0000 Original-Received: from kdea@alpine-la.com by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(0.3/5.0):. Processed in 0.45454 secs); 24 Jul 2003 12:20:14 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 24 Jul 2003 12:20:13 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HIJ0011Z3LM82@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 24 Jul 2003 08:20:12 -0400 (EDT) Original-Received: from mclean.mail.mindspring.net (mclean.mail.mindspring.net [207.69.200.57]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HIJ000MD3LB4M@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 24 Jul 2003 08:20:00 -0400 (EDT) Original-Received: from user-119bt68.biz.mindspring.com ([66.149.244.200] helo=sneezy.alpine-la.com) by mclean.mail.mindspring.net with esmtp (Exim 3.33 #1) id 19ff4h-000800-00 for tru64-unix-managers@ornl.gov; Thu, 24 Jul 2003 08:19:59 -0400 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Lotus Notes Build V60_M14_08012002NP Release Candidate August 01, 2002 X-MIMETrack: Serialize by Router on sneezy/Alpine-La(Release 5.0.11 |July 24, 2002) at 07/24/2003 05:19:58 AM, Serialize complete at 07/24/2003 05:19:58 AM Xref: main.gmane.org gmane.os.tru64.managers:4932 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4932 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.