[Novalug] Need help: Need to build Apcupsd on a FreeBSD 6.2 box
Brandon Saxe
brandon20va at yahoo.com
Fri Jul 13 12:08:55 EDT 2007
I'm running Debian 3.1 on an older Sony Vaio
PCV-LX800. I apparently came with Windows ME, but I
blew that out as soon as I got it. I can't remember if
Windows would shut it down or not.
All the files are there and /etc/default/halt is set
to poweroff.
I guess I would need to validate what the hardware
support is for this. Is this something related to
ACPI? Is there a driver that should be loaded to do
this correctly?
I have a second Debian 3.1 box as my file server and
it has the same behavior. It has an ASUS P3B-F mobo in
it and I used to run Red Hat on it back in the day. If
I remember correctly, it would indeed power off when
shutdown -h was executed. But with Debian 3.1 it does
not.
--Brandon
--- donjr <djr1952 at hotpop.com> wrote:
> On Fri, 2007-07-13 at 07:31 -0700, Brandon Saxe
> wrote:
> > > If 'shutdown -P' doesn't power off your system
> then
> > > you need to adjust
> > > the shutdown subsystem.
> >
> > I have a machine that does not power off with
> this.
> > How does one 'adjust the shutdown system' as
> stated
> > above so that it does?
> >
> > Thanks,
> > Brandon
>
> First question:
> Does your HARDWARE support the feature?
> If it doesn't the best you can ever do is HALT the
> system and request
> that the operator switches the power off.
>
> What disturprodution(sp) are you running?
>
> As it depends on where the configuration files {if
> any} are located.
>
> In Ubuntu and most Debian based distru<G> there is a
> file:
> /etc/default/halt
>
> Which should contain something close to:
>
> # Default behaviour of shutdown -h / halt. Set to
> "halt" or "poweroff".
> HALT=poweroff
>
> If it doesn't adjust and test things out.
>
> Next step
> Look in /etc/rc0.d/ for the file S90halt
> $ ls -l /etc/rc0.d/S??halt
>
> The above should return something like:
> lrwxrwxrwx 1 root root 14 2005-05-07 04:29
> /etc/rc0.d/S90halt -> ../init.d/halt
>
> {-:
> Note the date and time will most likely be
> different as the above
> is from my older Debian based system.
> :-}
>
> If it there then study the file:
> less /etc/init.d/halt
>
> For ideas as to where to look next.
>
> WARNING:
> Do not try to execute /etc/init.d/halt directly.
> It is intended to be ran by 'init' at the end of
> runlevel 0 and will
> only work correctly in that contents.
> Otherwise bad things can and will happen.
>
> --
> --
> Don E. Groves, Jr.
>
> $ /usr/games/fortune :
> Consider well the proportions of things. It is
> better to be a young
> June-bug than an old bird of paradise.
> -- Mark Twain, "Pudd'nhead Wilson's Calendar"
>
More information about the Novalug
mailing list