At 10:54 AM -0400 5/22/06, Scott "Tuc" Ellentuch at T-B-O-H wrote:
Hi,
I'd like to find out where to put the
"upsdrvctl shutdown" in the shutdown process. Putting
it in rc.shutdown causes me to have dirty filesystems
constantly that sometimes don't allow the system to
come up.
It occurs to me that I did save away the message that
said the right way to do it:
At 11:21 AM -0700 5/19/00, Mike Smith wrote:
The canonical way to do this is actually to shudown
and reboot.
In the _startup_ phase, while the root filesystem is
still mounted readonly, you check the UPS status. At
this point, you have access to the disk in a read-only
fashion, and you can power-off (or have the UPS die)
at any time.
So, you don't create any flag-file as I had guessed in my
previous message. The one thing you need to make sure if
is that your UPS-reading program can *run* before /usr is
mounted. You could test that by booting up in single-user
mode, and see if the program works.
--
Garance Alistair Drosehn = [EMAIL PROTECTED]
Senior Systems Programmer or [EMAIL PROTECTED]
Rensselaer Polytechnic Institute or [EMAIL PROTECTED]
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"