Bug 58892

Summary: shutdown -r ==> power off instead of rebooting
Product: [Retired] Red Hat Linux Reporter: Richard Elkins <relkins>
Component: basesystemAssignee: Bill Nottingham <notting>
Status: CLOSED CURRENTRELEASE QA Contact: Aaron Brown <abrown>
Severity: low Docs Contact:
Priority: low    
Version: 7.2CC: 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: 2004-10-14 19:43:16 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 Richard Elkins 2002-01-26 23:10:40 UTC
Description of Problem:

The issue is in file /etc/init.d/halt.
For "shutdown -r", the resultant $command is "reboot -i -d -p".
But, the "-p" should not be there for a reboot.
I believe that a few lines beginning at 196 in this file 
should be corrected so that only the existence of /poweroff 
causes the appending of "-p".

Version-Release number of selected component (if applicable):


How Reproducible: consistent


Steps to Reproduce:
1. /sbin/shutdown -r now
2. 
3. 

Actual Results: Powered off my PC


Expected Results: 
When /etc/init.d/halt is corrected to check only for
the existence of /poweroff, then my PC 

(a) reboots on `shutdown -r`
(b) power offs on `shutdown`

Additional Information:
n case you think this is hardware related, 
by motherboard is an ABIT BE6.
When I used to run Windows on the same machine,
it differentiated between reboot and shutdown ok.
Note: I am not suggesting that Windoze should be held up 
as a shining example of high-quality hardware operation!

Comment 1 Rik van Riel 2004-10-14 19:43:16 UTC
Looks like this bugzilla fell through the cracks, even though the bug
in question should have been resolved long ago...