🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11209

Re: Preen and SunOS 4.0

#11209
From: Brian Berliner
Date: Wed, 01 Mar 1989 10:51
21 lines
1364 bytes
> Also, can anyone tell me why the /etc/rc.boot distributed by sun tests for
> a return code of 0 or 2 instead of just 0 in the case statement after
> checking the disks?  Fsck is not documented as returning a 2.  What does
> it mean?

"fsck" uses exit status 2 to indicate to rc.boot (and "init") that it has
successfully checked the disks, but not to go directly into multi-user
state.

Typing the QUIT (^\) character while "fsck" is doing its work will cause
"fsck" to exit with a status of 2 instead of zero only if all worked as
expected.  This is basically just a quick out to get you cleanly into
single-user mode, when you forgot to do ">b -s".

If you're running "preen", things may work differently.  You may have to
make "preen" understand this signal handling protocaol and have preen exit
with a 2 instead.

Brian Berliner
Prisma, Inc.
berliner@prisma.com
Technical Details
Message-ID: <8902172210.AA25412@uunet.UU.NET>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: prisma!berliner@uunet.uu.net (Brian Berliner)
Newsgroups: comp.sys.sun
Subject: Re: Preen and SunOS 4.0
Message-ID: <8902172210.AA25412@uunet.UU.NET>
Date: 1 Mar 89 10:51:40 GMT
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 21
Approved: Sun-Spots@rice.edu
Original-Date: Fri, 17 Feb 89 15:10:58 MST
X-Sun-Spots-Digest: Volume 7, Issue 175, message 3 of 8