Red Hat Bugzilla – Bug 58892
shutdown -r ==> power off instead of rebooting
Last modified: 2014-03-16 22:25:14 EDT
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
Actual Results: Powered off my PC
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`
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!
Looks like this bugzilla fell through the cracks, even though the bug
in question should have been resolved long ago...