In RH6.2, typing "halt" at the command line would bring the system down and then do a 
power-off.  In RH7.0, "halt" simply brings the system down without a power-off.  Under 
7.0 you can do a halt+power-off by typing "poweroff" at the command line.  On my 7.0 
machine, "halt -p" has the same result as "poweroff".

This change in behavior was apparently intentional (from 
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=18885):

"------- Additional comments from [EMAIL PROTECTED] 2000-10-14 06:23 -------

The behaviour has changed intentionally. The 'poweroff' command does a shutdown
and power off,
the halt command now just halts the machine. This matches the behaviour of other
platforms."

So this is a feature, not a bug.

If you like the old behavior better, you can always change the `halt` script in 
/etc/rc/d/init.d.  Of course, the next time you update your initscript package, your 
changes will get overwritten, so save a backup copy under a different name.

Since typing "halt -p" isn't much more effort than typing "halt", I changed the `halt` 
script back to match the script as originally installed by 7.0.

I have no idea how this change in behavior would affect someone who boots into graphic 
mode (run level 5).

__
Larry Grover, PhD
Assoc Prof of Physiology
Marshall Univ Sch of Med



On Mon, 23 Oct 2000 20:05:35 +0200, Gustav Schaffter <[EMAIL PROTECTED]> wrote:
>
> Chad,
>
> I definitively think so. I followed the links to bugzilla that Larry
> provided in a different msg. But from what I could see in their
> responses, they didn't think it was a problem, but more of a feature.
> (??) (I could of course have misunderstood their point. I'm known to do
> that sometimes.)
>
> Maybe sending them the solution might give them the light?
>
> I don't want to do this myself, since I don't have RH7 yet. I'm still on
> RH6.2+ on all my machines and the /etc/rc.d/init.d/halt script doesn't
> look the same in RH6.x. As a result, I couldn't verify a fix or try
> something they would propose, if that would become the case. So I must
> let someone already running RH7 do the bugzilla stuff this time.
>
> Maybe you should talk to Larry and decide which one of you would do a
> bugzilla report?
>
> Regards
> Gustav
>
> P.S. My solution, as shown below, was very much a guesswork. I just
> thought the line looked strange and I couldn't believe that they had put
> either poweroff or halt in root.
>
>
> "Chad W. Skinner" wrote:
>> 
>> > Larry,
>> >
>> > I believe that line should probably be corrected to read:
>> >
>> > #if [ -f /sbin/poweroff -o ! -f /sbin/halt ]; then
>> >
>> > to make it work as intended. (Haven't tried it myself, though. I'm still
>> > on RH6.2+)
>> 
>> I made these changes and it worked for the first time with X running. Is
>> this something that redhat should be made aware of as it seems as thought it
>> would affect everyone with the paths being wrong?
>> 
>> Chad
>
> -- 
> pgp = Pretty Good Privacy.
>
> To get my public pgp key, send an e-mail to: [EMAIL PROTECTED]
>
> Visit my web site at http://www.schaffter.com
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to