Bug 7318 - halt does poweroff too.
Summary: halt does poweroff too.
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: SysVinit (Show other bugs)
(Show other bugs)
Version: 6.1
Hardware: i386 Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
Keywords: FutureFeature
Depends On:
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:
Story Points: ---
Clone Of:
Last Closed: 2000-04-19 20:23:27 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.