[Freeswitch-users] Reload mod_lua

William King william.king at quentustech.com
Tue Jan 22 00:47:34 MSK 2013


Interesting. A mod_lua api that would list the currently running lua
scripts with an id that could be used to kill off individual scripts.

William King
Senior Engineer
Quentus Technologies, INC
1037 NE 65th St Suite 273
Seattle, WA 98115
Main:   (877) 211-9337
Office: (206) 388-4772
Cell:   (253) 686-5518
william.king at quentustech.com

On 01/21/2013 01:21 PM, Avi Marcus wrote:
> A tool that can monitor Lua threads, and kill them, would come in useful
> every so often...
> 
> -Avi
> 
> On Mon, Jan 21, 2013 at 11:14 PM, Abaci <abaci64 at gmail.com
> <mailto:abaci64 at gmail.com>> wrote:
> 
>     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's not running. not a simple solution
>     but doable.
> 
> 
>     On 1/21/2013 1:52 PM, Michael Collins wrote:
>>     Lua is not "unloadable" and therefore you cannot do this the way
>>     you are trying to. You'll need to restart FreeSWITCH.
>>     -MC
>>
>>     On Mon, Jan 21, 2013 at 9:43 AM, Mimiko <vbvbrj at gmail.com
>>     <mailto:vbvbrj at gmail.com>> wrote:
>>
>>         I want to reload mod_lua in order to reload lua scripts that a
>>         starte
>>         automatically on start-up. But I get this:
>>
>>         freeswitch at internal> reload mod_lua
>>         +OK Reloading XML
>>         -ERR unloading module [Module is not unloadable]
>>         -ERR loading module [Module already loaded]
>>
>>         [CRIT] switch_loadable_module.c:1451 Module is not unloadable.
>>         [WARNING] switch_loadable_module.c:1400 Module mod_lua Already
>>         Loaded!
>>         [INFO] mod_enum.c:872 ENUM Reloaded
>>         [INFO] switch_time.c:1165 Timezone reloaded 530 definitions
>>
>>         How to refresh modified lua scripts without reloading FS with
>>         restart?
>>         --
>>         Mimiko desu.
>>
>>         _________________________________________________________________________
>>         Professional FreeSWITCH Consulting Services:
>>         consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>         http://www.freeswitchsolutions.com
>>         <http://www.freeswitchsolutions.com/>
>>
>>         
>>          </>
>>
>>         Official FreeSWITCH Sites
>>         http://www.freeswitch.org <http://www.freeswitch.org/>
>>         http://wiki.freeswitch.org <http://wiki.freeswitch.org/>
>>         http://www.cluecon.com <http://www.cluecon.com/>
>>
>>         FreeSWITCH-users mailing list
>>         FreeSWITCH-users at lists.freeswitch.org
>>         <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>         UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>         http://www.freeswitch.org <http://www.freeswitch.org/>
>>
>>
>>
>>
>>     -- 
>>     Michael S Collins
>>     Twitter: @mercutioviz
>>     http://www.FreeSWITCH.org <http://www.freeswitch.org/>
>>     http://www.ClueCon.com <http://www.cluecon.com/>
>>     http://www.OSTAG.org <http://www.ostag.org/>
>>
>>
>>
>>     _________________________________________________________________________
>>     Professional FreeSWITCH Consulting Services:
>>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>     http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>>
>>     
>>      </>
>>
>>     Official FreeSWITCH Sites
>>     http://www.freeswitch.org <http://www.freeswitch.org/>
>>     http://wiki.freeswitch.org <http://wiki.freeswitch.org/>
>>     http://www.cluecon.com <http://www.cluecon.com/>
>>
>>     FreeSWITCH-users mailing list
>>     FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>     http://www.freeswitch.org <http://www.freeswitch.org/>
> 
> 
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
> 
>     
>      </>
> 
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org <http://www.freeswitch.org/>
>     http://wiki.freeswitch.org <http://wiki.freeswitch.org/>
>     http://www.cluecon.com <http://www.cluecon.com/>
> 
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org <http://www.freeswitch.org/>
> 
> 
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list