Skip site navigation (1)Skip section navigation (2)
Date:      27 Sep 2002 12:21:10 -0700
From:      swear@attbi.com (Gary W. Swearingen)
To:        Petri Riihikallio <Petri.Riihikallio@Metis.fi>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to shut down cleanly by killing power
Message-ID:  <4rvg4r5jdl.g4r@localhost.localdomain>
In-Reply-To: <a05111b09b9ba4b46ea3d@[192.168.0.2]>
References:  <bulk.28113.20020926143904@hub.freebsd.org> <a05111b07b9b9ec1c1aac@[192.168.0.2]> <87elbf1r7d.fsf@pooh.int> <a05111b04b9ba22404693@[192.168.0.2]> <qzd6qz73f4.6qz@localhost.localdomain> <a05111b09b9ba4b46ea3d@[192.168.0.2]>

next in thread | previous in thread | raw e-mail | index | archive | help
> This way the system reboots, but the reboot is interrupted with
> powerdown at early stage. Not ideal, I agree, but a solution still.

And it has the side-benefit of nicely handling the fairly common case of
where the power comes back on just long enough to get your UPS going
again, especially if it doesn't have enough power to get you through one
or more whole reboot-fsck-multi-user-UPS-shutdown cycles.  (It's hard
to restart a whole mains power grid and it often doesn't work the first
time, as another poster indicated.)  Of course you could do the
start-of-rc thing no matter how you handle the shutdown.

And if static linking the UPS software is a problem, you might consider
having it use /-based copies of their required libraries using the
LD_LIBRARY_PATH env.var. or maybe (?) using (at start of /etc/rc) 
"/sbin/ldconfig /etc/ld-ups.so.conf".

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4rvg4r5jdl.g4r>