Upstart and powerfailures

Bassel Safadi bassel.safadi at gmail.com
Fri Jun 20 23:41:42 UTC 2008


On Fri, Jun 20, 2008 at 11:16 PM, Edwin <fedora at dicker.nl> wrote:

>  Hi all,
>
>
> I recently went from FC5 to F9 and learned that the SystemV inittab has
> been
> replaced by upstart.
> On my FC5 box I had the following in my inittab :
>
> pf::powerfail:/sbin/shutdown -f -h +3 "Power Failure; System Shutting Down"
> # If power was restored before the shutdown kicked in, cancel it.
> pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"
>
>
> I have read the upstart documentation but I just can't figure out how an
> event script should be written like to be able to use a UPS on the system.
>
> Does anyone has some experience with this and maybe an example script for a
> powerfailure ?
>
> Thanks in advance,
>
> Edwin
>
>

if you use a APC UPS then you may want to check the APC UPS daemon:
http://apcupsd.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080621/5c4b1003/attachment-0001.htm>


More information about the fedora-list mailing list