Bug 58892 - shutdown -r ==> power off instead of rebooting
Summary: shutdown -r ==> power off instead of rebooting
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: basesystem
Version: 7.2
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-26 23:10 UTC by Richard Elkins
Modified: 2014-03-17 02:25 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-10-14 19:43:16 UTC
Embargoed:


Attachments (Terms of Use)

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...


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