[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: System is halted



prasad <prasadb@xxxxxxxxxx> writes:

> Arun Sharma wrote:
> > 
> > On Tue, Jun 01, 1999 at 06:51:25PM +0530, prasad wrote:
> > > Small question - why does the "System is halted" message
> > > get displayed twice (I am using RH 5.x) , when I do
> > > a 'shutdown -h now'?
> 
> Actually, there are two different messages - first one
> gets a "System is halted"  and then "System Halted". I have
> noticed it on all RH installs. I will go through
> the rc scripts, someday, sometime and investigate, unless some
> guru already knows the answer.
> 

Looks like I'm the guru you're looking for :-)

System is halted  - comes from /etc/rc.d/init.d/halt

It makes a reboot system call, which makes the kernel print "System
halted" to the console. See /usr/src/linux/kernel/sys.c.

	-Arun


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated.  If you can appreciate satire read
http://www.templetons.com/brad/emily.html

------------------------------