Newsgroups: comp.sys.3b1
Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!hybrid!chance!john
From: john@chance.UUCP (John R. MacMillan)
Subject: Re: Single user mode
Message-ID: <1991May6.002352.21246@chance.UUCP>
Organization: Haphazard
References: <337@ramecs.UUCP>
Date: Mon, 6 May 1991 00:23:52 GMT

|When I use "/etc/shutdown" I get the message telling me to press RETURN
|to reboot. I'd like the system to go into single user mode instead.
|(With a shell). Then, "init 2" could be used to start the system back up.
|
|Who/what is detecting the transition into single user mode and displaying
|that message? And how can it be changed?

That's coming from /etc/profile.  When /etc/shutdown does the "init s",
a shell ends up running that runs /etc/profile.  If the run level is
"S", profile completes the shutdown (in a somewhat half-assed manner,
IMHO; it kills things before running scripts in /etc/shutdaemon that
might have shut them down cleanly).
