Re: poweroff problem

From: Solar Designer (solar@private)
Date: Thu Nov 15 2001 - 23:21:06 PST


On Tue, Nov 13, 2001 at 03:48:51PM +0300, Solar Designer wrote:
> On Tue, Nov 13, 2001 at 01:32:34PM +0100, Piotr Synowiec wrote:
> > I have got problem with poweroff of my machine when I halt it.
> > 
> > I tried to recompile kernel all possible ways, no change at all
> > I tried APM and ACPI.
> > 
> > Is this Owl related, I mean the way how halt has been compiled?
> 
> Shouldn't be.  When called as "poweroff", halt(8) simply passes a
> different reboot magic to the kernel.  We didn't modify this in any way.

OK, I've investigated this and the problem _is_ Owl-related.  It's
just not halt(8)- or kernel-related.

A workaround is to add "-p" to the last line of /etc/init.d/halt.
The drawback is that then you won't be able to cleanly halt the system
without also powering it off (but reboots will work).  Apparently,
this is how Debian has it.  No idea about SuSE.  (If anyone has the
time to check, please post to the list.)

As for a proper fix, I am not sure.  The information is simply not
passed down to the scripts and I don't see a clean way to pass it
other than by allocating a runlevel to "poweroff".

-- 
/sd



This archive was generated by hypermail 2.1.3 : Sun Jan 15 2006 - 13:43:15 PST