This is the "right" idea - have your UPS write "power loss shutdown" when it has to stop the machine, then check for that when you come back up and reboot when you see it (of course you would need to log something else to prevent a loop of reboots).
From: [email protected] [mailto:[email protected]] On Behalf Of Robert Huddleston Sent: Wednesday, July 27, 2011 9:05 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] Lightning and thunder Maybe write a cludgy init.d script / bash. I.e. make a file somewhere called rebootflag. set it to 1 after you issue a shutdown -r -n now. then check it in init.d script. Pseudo code In init.d / startup scripts If /etc/manualreboot = 0 or file not found echo 1 >> /etc/manualreboot /sbin/shutdown -r -n now end if From: [email protected] [mailto:[email protected]] On Behalf Of Claude Hayn Sent: Wednesday, July 27, 2011 9:44 AM To: [email protected] Subject: [asterisk-users] Lightning and thunder We are frequently losing power during lightning storms. (Yes we have UPS, but often by the time power comes back up the UPS has run out of juice) We are using Asterisk with a T1/PRI card as a front end connected to our PBX. Whenever there is a power outage both the Asterisk box and the PBX automatically reboot when power returns. The Asterisk box automatically reconnects to the ITSP SIP Peer, and the PBX to the T1/PRI Card Asterisk box. Incoming calls connect, but outbound calls will not complete until the Asterisk box is manually rebooted again. Does anyone know of a solution for this issue? Having to get up in the late night to manually reboot the Asterisk box is getting old! Thank you, Claude
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
