From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jim Fitzmaurice Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: The init process and the "-a" option. Date: Tue, 30 Jul 2002 11:22:52 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <023201c237e5$5a809590$66e1e183@fnal.gov> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1028046194 29861 127.0.0.1 (30 Jul 2002 16:23:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 30 Jul 2002 16:23:14 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17ZZmB-0007lM-00 for ; Tue, 30 Jul 2002 18:23:12 +0200 Original-Received: (qmail 8288 invoked by uid 5); 30 Jul 2002 16:23:34 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 8280 invoked from network); 30 Jul 2002 16:23:34 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 30 Jul 2002 16:23:34 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H02000AMLI9O4@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT Tru64-unix-managers@ornl.gov) ; Tue, 30 Jul 2002 12:23:33 -0400 (EDT) Original-Received: from fnal.gov (heffalump.fnal.gov [131.225.9.20]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H020038QLHLPL@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT Tru64-unix-managers@ornl.gov) ; Tue, 30 Jul 2002 12:22:46 -0400 (EDT) Original-Received: from d0nt36 ([131.225.225.102]) by smtp.fnal.gov (PMDF V6.0-24 #37519) with SMTP id <0H0200MP3LHLP5@smtp.fnal.gov> for Tru64-unix-managers@ornl.gov; Tue, 30 Jul 2002 11:22:33 -0500 (CDT) Original-To: Tru64 -unix -managers X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-Priority: 3 X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:1168 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1168 Hello again, No surprise, Dr Blinn has the answer again. My original question follows Dr. Blinn's response: In the init code, it has this initialization logic: if (argc > 1 && *(cp = argv[1]) == '-') { while (*++cp) { switch (*cp) { case 'a': howto |= RB_ASKNAME; break; case 's': howto |= RB_SINGLE; break; } } } so the "-a" switch is setting the RB_ASKNAME flag. However, that flag has NO impact on the functioning of "init". I suspect it's a legacy flag of some kind that is no longer used. I have no idea why anyone is passing in the flag, but there you have it. Tom Dr. Thomas P. Blinn + Tru64 UNIX Software + Hewlett-Packard Company Internet: tpb@zk3.dec.com, thomas.blinn@compaq.com, thomas.blinn@hp.com 110 Spit Brook Road, MS ZKO3-2/W17 Nashua, New Hampshire 03062-2698 Technology Partnership Engineering Phone: (603) 884-0646 ACM Member: tpblinn@acm.org PC@Home: tom@felines.mv.net Worry kills more people than work because more people worry than work. Keep your stick on the ice. -- Steve Smith ("Red Green") My favorite palindrome is: Satan, oscillate my metallic sonatas. -- Phil Agre, pagre@alpha.oac.ucla.edu Yesterday it worked / Today it is not working / UNIX is like that -- apologies to Margaret Segall Opinions expressed herein are my own, and do not necessarily represent those of my employer or anyone else, living or dead, real or imagined. ----- Original Question ----- Hello, I had an interesting question posed to me and I was wondering if anyone out there knows for sure. On each machine there is an "/sbin/init -a" process running, but the man page doesn't show a "-a" option. I assume this is because it's run from the kernel as the original init process, so the "-a" isn't an available option for the common user. But rather than tell him what I think, I'd prefer to give him a correct answer base on knowledge. So does anybody KNOW what the "-a" option for the init process is for? Or as the question was posed to me, "I looked in the man pages on OSF and "init" is the process doing the startup scripts as expected. Curiously I see no mention of a "-a" option in the man pages, could someone explain why that is there to me and what it does?" James Fitzmaurice D0 Online Systems Manager Fermi National Accelerator Laboratory (630) 840-4011 jpfitz@fnal.gov UNIX is very user friendly, It's just very particular about who it makes friends with.