<br><br><div class="gmail_quote">On Fri, Jun 20, 2008 at 11:16 PM, Edwin <<a href="mailto:fedora@dicker.nl">fedora@dicker.nl</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 Hi all,<br>
<br>
<br>
I recently went from FC5 to F9 and learned that the SystemV inittab has been<br>
replaced by upstart.<br>
On my FC5 box I had the following in my inittab :<br>
<br>
pf::powerfail:/sbin/shutdown -f -h +3 "Power Failure; System Shutting Down"<br>
# If power was restored before the shutdown kicked in, cancel it.<br>
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"<br>
<br>
<br>
I have read the upstart documentation but I just can't figure out how an<br>
event script should be written like to be able to use a UPS on the system.<br>
<br>
Does anyone has some experience with this and maybe an example script for a<br>
powerfailure ?<br>
<br>
Thanks in advance,<br>
<br>
Edwin<br>
<font color="#888888"><br></font></blockquote></div><br><br>if you use a APC UPS then you may want to check the APC UPS daemon:<br><a href="http://apcupsd.org/">http://apcupsd.org/</a><br><br>