I wish someone from Red Hat would chine, but my guess is no. It looks like
they are trying to use the existance of files named poweroff and halt in
/ to determine whether or not to do a halt or a halt -p.

Strange, but true (I think).

charles

On Wed, 25 Oct 2000, Gustav Schaffter wrote:

> Larry,
> 
> Maybe so. But shouldn't the line
> 
> #if [ -f /poweroff -o ! -f /halt ]; then
> 
> actually read
> 
> #if [ -f /sbin/poweroff -o ! -f /sbin/halt ]; then
> 
> anyway?
> 
> Regards
> Gustav
> 
> 
> Larry Grover wrote:
> > 
> > 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).



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

Reply via email to