Bug 7318 - halt does poweroff too.
Summary: halt does poweroff too.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: SysVinit
Version: 6.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-11-25 04:50 UTC by Ric Anderson
Modified: 2014-03-17 02:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-04-19 20:23:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Ric Anderson 1999-11-25 04:50:38 UTC
/sbin/halt with no parameters, e.g.
	# /sbin/halt
causes a power off as though -p or the poweroff command was used.  This
is because halt execs shutdown which execs "init 0" which runs the
scripts in rc0.d, and the last of those (S01halt) contains a
"halt -i -d -p".

Obviously I can edit S01halt to eliminate the -p.  But this makes the
poweroff command equivalent to a halt (no power off occurs).

Is there some way to make halt just halt the machine, and still
have poweroff (or halt -p) shut off power?

Comment 1 Bill Nottingham 1999-11-29 16:39:59 UTC
Since halt now calls init to switch to runlevel 6, it's
difficult to get arguments passed in the environment
to it. We'll look into patching halt to do this.

Comment 2 Bill Nottingham 2000-04-19 20:23:59 UTC
Fixed in initscripts-5.10-1, and SysVinit-2.78-8.


Note You need to log in before you can comment on or make changes to this bug.