Bug 7318 - halt does poweroff too.
halt does poweroff too.
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: SysVinit (Show other bugs)
6.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-11-24 23:50 EST by Ric Anderson
Modified: 2014-03-16 22:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-04-19 16:23:27 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ric Anderson 1999-11-24 23:50:38 EST
/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 11:39:59 EST
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 16:23:59 EDT
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.