Anyone using sysutils/nut ?
Garance A Drosihn
drosih at rpi.edu
Wed May 24 22:21:33 PDT 2006
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 = gad at gilead.netel.rpi.edu
Senior Systems Programmer or gad at freebsd.org
Rensselaer Polytechnic Institute or drosih at rpi.edu
More information about the freebsd-questions
mailing list