reboot after power failure?
Ok,
I did a search both here and google and couldnt find an answer that made sense... How can I make my linux box reboot when the powerfails? I live in an area where the power often blinks out for a second, causing my computers to turn off.. I am looking for a way to have them automatically reboot when the power comes back on. They are not on UPS. I found this in /etc/inittab but I'm not sure exactly what to change or if it would even work if I did change it. # What to do when the power fails/returns. pf::powerwait:/etc/init.d/powerfail start pn::powerfailnow:/etc/init.d/powerfail now po::powerokwait:/etc/init.d/powerfail stop Thanks! |
AFAIK the powerfail etc commands are base on status signals from a UPS.
BTW Power sags and dropouts can be bad for computers and I suggest getting a UPS. I do not know if this is possible with a regular PC. |
On most computers, you can select their "power on" status. However, this has absolutely nothing to do with Linux and everything to do with your BIOS. Consult your BIOS documentation for details.
|
ok, thanks for the responses.
|
Quote:
If you need your computers to be available, buy a UPS. They really don't cost that much. You can get by with one of lower reserve capabilities by not plugging your monitor into a battery outlet (plug it into one of the UPS's surge-only outlets.) If you really want to ping-pong the poor thing, BIOS is where you can set this up, as others have said. |
All times are GMT -5. The time now is 11:05 PM. |