Bug 16376

Summary: poweroff in initscripts.
Product: [Retired] Red Hat Linux Reporter: Sam Varshavchik <mrsam>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-16 16:49:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sam Varshavchik 2000-08-16 16:49:26 UTC
There's some leftover cruft at the tail end of the halt script:

HALTARGS="-i -d"
if [ -f /poweroff -o ! -f /halt ]; then
    HALTARGS="$HALTARGS -p"
fi

The halt command does not have the -p option.  This is superceeded by the
poweroff command.

Additionally, there's nothing that creates /poweroff.  This should be an
option to shutdown.

Comment 1 Bill Nottingham 2000-08-16 20:00:40 UTC
The halt command certainly claims to have a -p option.

As for something that creates /poweroff, look at
the SysVinit source. :)