<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div>I use a crontab task to do this - the task is:</div><div><br></div><div id="yui_3_16_0_ym19_1_1487807422036_405582" dir="ltr">/usr/local/bin/lsnodes 40920 >/root/nodelist 2>&1<br id="yui_3_16_0_ym19_1_1487807422036_405611">nodecount=`wc -l </root/nodelist`<br id="yui_3_16_0_ym19_1_1487807422036_405612">export nodecount<br id="yui_3_16_0_ym19_1_1487807422036_405613">echocount=`grep ECHOLINK </root/nodelist|wc -l`<br id="yui_3_16_0_ym19_1_1487807422036_405614">export echocount<br id="yui_3_16_0_ym19_1_1487807422036_405615">echo "Asterisk is connected to "$nodecount" nodes, $echocount are ECHOLINK."<br id="yui_3_16_0_ym19_1_1487807422036_405616">[ "$nodecount" -lt 20 ] && sh /root/restart.sh</div><div dir="ltr"><br></div><div dir="ltr">And restart.sh contains:</div><div dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1487807422036_405640">restarttime=`date`<br id="yui_3_16_0_ym19_1_1487807422036_405648">echo "Asterisk restart at "$restarttime >>/root/restart.log<br id="yui_3_16_0_ym19_1_1487807422036_405649">asterisk -rx 'restart now'</div><div dir="ltr"><br></div><div dir="ltr">Works dandy, any time my nodelist gets less than normal it restarts...<br></div><div id="yui_3_16_0_ym19_1_1487807422036_405617"><span></span></div><div id="yui_3_16_0_ym19_1_1487807422036_405618"> </div><div class="signature" id="yui_3_16_0_ym19_1_1487807422036_405535">Steven Donegan<br>KK6IVC General Class FCC License<br>FAA PP-ASEL Pilots License<br>Silver State Car #86<br>www.sscc.us</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1487807422036_405536"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1487807422036_405540" style="display: block;">  <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1487807422036_405539"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1487807422036_405538"> <div dir="ltr" id="yui_3_16_0_ym19_1_1487807422036_405537"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Bob <k6ecm1@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> App_rpt-users@lists.allstarlink.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, February 25, 2017 7:41 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [App_rpt-users] Auto Reconnect?<br> </font> </div> <div class="y_msg_container"><br>Is there a way to setup an auto reconnect after an internet interruption? I<br>would want to set it for a specific period of time, which I could perform<br>manually, but I don't want to have to monitor the repeater to catch the<br>disconnect. Thoughts?<br><br>Thanks,<br>Bob<br>k6ecm<br><br>_______________________________________________<br>App_rpt-users mailing list<br><a ymailto="mailto:App_rpt-users@lists.allstarlink.org" href="mailto:App_rpt-users@lists.allstarlink.org">App_rpt-users@lists.allstarlink.org</a><br><a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br><br>To unsubscribe from this list please visit <a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users </a>and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"<br>You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. <br><br></div> </div> </div>  </div></div></body></html>