<div dir="ltr">A tool that can monitor Lua threads, and kill them, would come in useful every so often...<div><br clear="all"><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div>

</div><br><div class="gmail_quote">On Mon, Jan 21, 2013 at 11:14 PM, Abaci <span dir="ltr">&lt;<a href="mailto:abaci64@gmail.com" target="_blank">abaci64@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>or you can have your script listen for
      event or check a variable and exit the script as needed. and
      another background script which will start the script again if
      it&#39;s not running. not a simple solution but doable.<div><div class="h5"><br>
      <br>
      On 1/21/2013 1:52 PM, Michael Collins wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">Lua is not &quot;unloadable&quot; and therefore you cannot do
      this the way you are trying to. You&#39;ll need to restart FreeSWITCH.<br>
      -MC<br>
      <br>
      <div class="gmail_quote">On Mon, Jan 21, 2013 at 9:43 AM, Mimiko <span dir="ltr">&lt;<a href="mailto:vbvbrj@gmail.com" target="_blank">vbvbrj@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I want to
          reload mod_lua in order to reload lua scripts that a starte<br>
          automatically on start-up. But I get this:<br>
          <br>
          freeswitch@internal&gt; reload mod_lua<br>
          +OK Reloading XML<br>
          -ERR unloading module [Module is not unloadable]<br>
          -ERR loading module [Module already loaded]<br>
          <br>
          [CRIT] switch_loadable_module.c:1451 Module is not unloadable.<br>
          [WARNING] switch_loadable_module.c:1400 Module mod_lua Already
          Loaded!<br>
          [INFO] mod_enum.c:872 ENUM Reloaded<br>
          [INFO] switch_time.c:1165 Timezone reloaded 530 definitions<br>
          <br>
          How to refresh modified lua scripts without reloading FS with
          restart?<br>
          --<br>
          Mimiko desu.<br>
          <br>
_________________________________________________________________________<br>
          Professional FreeSWITCH Consulting Services:<br>
          <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
          <a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
          <br>
          FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
          <a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
          <br>
          Official FreeSWITCH Sites<br>
          <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
          <a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
          <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
          <br>
          FreeSWITCH-users mailing list<br>
          <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
      <br clear="all">
      <br>
      -- <br>
      Michael S Collins<br>
      Twitter: @mercutioviz<br>
      <a href="http://www.freeswitch.org/" target="_blank">http://www.FreeSWITCH.org</a><br>
      <a href="http://www.cluecon.com/" target="_blank">http://www.ClueCon.com</a><br>
      <a href="http://www.ostag.org/" target="_blank">http://www.OSTAG.org</a><br>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><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>
<br></blockquote></div><br></div></div>