Hi Jan,<div>Regarding the monitoring and restarting script - you can use monit:</div><div><br></div><div><a href="http://mmonit.com/monit/"></a>Take one of the pre-compiled binaries from</div><div><a href="http://mmonit.com/monit/download/">http://mmonit.com/monit/download/</a></div>
<div><br></div><div><a href="http://mmonit.com/monit/download/"></a>Unpack it on your system, create file:</div><div>/etc/monitrc</div><div><br></div><div>With the following content:</div><div><br></div><div><div> set daemon 60</div>
<div> set logfile syslog facility log_daemon</div><div><br></div><div> check process freeswitch with pidfile /usr/local/freeswitch/run/freeswitch.pid</div><div> start program = "/usr/local/freeswitch/bin/freeswitch -nc"</div>
<div> stop program = "/usr/local/freeswitch/bin/freeswitch -stop"</div></div><div><br></div><div><br></div><div>Start monit </div><div>/your/dir/monit/bin/monit</div><div>and enjoy :)</div><div><br></div>
<div>Also you can monitor the status from web, if you will add the following lines to the monitrc:</div><div><div>set httpd port 1234</div><div> use address <a href="http://your.domain.com">your.domain.com</a></div>
<div> allow your.ip.add.ress</div><div> allow yourUser:yourPassword</div></div><div><br></div><div>Don't forget to add start monit to the system auto start list.</div><div>Refer to your linux doc how to do it.</div>
<div><br></div><div>Regards,</div><div>Vitalie</div><div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">2010/12/14 Jan Riedinger <span dir="ltr"><<a href="mailto:riedinger@sns.eu">riedinger@sns.eu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">We are running FreeSWITCH Version 1.0.head (git-51cc00a 2010-10-06<br>
11-07-41 -0500).<br>
<br>
On the 7th December FS crashed. The last lines of the log file with full<br>
debug output are:<br>
22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG]<br>
sofia_glue.c:4250 Audio Codec Compare<br>
[G729:18:8000:20:8000]/[G729:18:8000:20:8000]<br>
22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG]<br>
sofia_glue.c:2554 Changing Codec from G729@30ms to G729@20ms<br>
2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX -<br>
0x2aaacc1530b0 (nil)<br>
2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:77 DECODER DESTROYX -<br>
0x2aaacc1530b0 (nil)<br>
2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX -<br>
0x2aaacc153130 (nil)<br>
<br>
There were some dozen concurrent calls on the system at this moment,<br>
thus it is possible that the crash was caused by something else than<br>
mod_com_g729.c.<br>
<br>
Furthermore, a 209 MB core dump file was written. Please let me know, if<br>
anyone wants to examine the reason for the crash in detail.<br>
<br>
Does anyone have written a script, which monitors and restart FS in such<br>
cases?<br>
<br>
Thank you in advance<br>
Jan<br>
<br>
<br>
<br>
--<br>
Jan Riedinger Phone : +49-30-39 73 19 66<br>
Dipl.-Inf. | Managing Director Fax : +49-30-39 73 19 64<br>
E-Mail: <a href="mailto:riedinger@sns.eu">riedinger@sns.eu</a><br>
SNS Consult GmbH ICQ : 163-237-041<br>
Südwestkorso 49a MSN : <a href="mailto:jan@sns-consult.de">jan@sns-consult.de</a><br>
14197 Berlin GERMANY Skype : Jan Riedinger<br>
<br>
AG Charlottenburg - HRB 71973<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>