Skip site navigation (1)Skip section navigation (2)
Date:      27 Sep 2002 10:22:55 -0700
From:      swear@attbi.com (Gary W. Swearingen)
To:        Petri Riihikallio <Petri.Riihikallio@Metis.fi>
Cc:        Kirk Strauser <kirk@strauser.com>, questions@FreeBSD.ORG
Subject:   Re: How to shut down cleanly by killing power
Message-ID:  <qzd6qz73f4.6qz@localhost.localdomain>
In-Reply-To: <a05111b04b9ba22404693@[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]>

next in thread | previous in thread | raw e-mail | index | archive | help
I've never tried this and it's not the ideal method, but it's simple,
so I offer it for your consideration:

Put your UPS software on the root partition.

In the software which initiates the mains-failure shutdown, just do
"shutdown -r now" or "init 6" or "reboot" or whatever.

At the top of /etc/rc, if your UPS monitor says that the mains have
failed, have your UPS controller switch off the UPS output.


References: init(8), rc(8), shutdown(8), reboot(8)

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?qzd6qz73f4.6qz>