[Novalug] Need help: Need to build Apcupsd on a FreeBSD 6.2 box
Ed T. Toton III
bones at necrobones.net
Thu Jul 12 13:22:51 EDT 2007
Thus spake donjr:
> Why didn't you just use this instead:
>
> #!/bin/sh
> exec /sbin/shutdown -P +3 "system will power off in three minutes from now" &
>
>
> If power comes up before the three minutes expires all you have to
> arrange to happen is the sending of:
> /sbin/shutdown -c "Power has been restored..."
>
> { see "man shutdown" the '-c' means cancel ... :-}
>
> If 'shutdown -P' doesn't power off your system then you need to adjust
> the shutdown subsystem.
Because that would make sense. :)
Actually it was a quick and dirty kluge that I haven't messed with in
years.
------------------------------------------------------------------
- Ed T. Toton III, RHCE --|-- www.necrobones.com -- ed.toton.org -
------------------------------------------------------------------
Random Non-Sequitur:
Hey!! Hey!! Know your basques and your crazy anecdote will
always come back to you.
More information about the Novalug
mailing list