The reason being if the module unloads while scripts are still running you're going to be almost guaranteed a segmentation fault - a well meaning admin running a simple command could crash the entire server dropping all calls.
mod_lua was reloadable but when I found that long-running scripts cannot be easily stopped the developers changed it to un-reloadable.I'd find some way to start/stop long-running scripts and I'd seen some implementations based on my example:There's also a blog page in Chinese explaining this: http://www.freeswitch.org.cn/2010/03/15/zai-freeswitchzhong-zhi-xing-chang-qi-yun-xing-de-qian-ru-shi-jiao-ben-luayu-yan-li-zi.htmlHope this helps.On Tuesday, January 22, 2013 at 3:40 PM, Mimiko wrote:
On 21.01.2013 23:47, William King wrote:Interesting. A mod_lua api that would list the currently running luascripts with an id that could be used to kill off individual scripts.Lua scripts, started with FS on start-up must not be killed, but updatedwhen changing code of script. A killing command for a lua script is okfor scripts that got in loop/.--Mimiko desu._________________________________________________________________________Professional FreeSWITCH Consulting Services:FreeSWITCH-powered IP PBX: The CudaTel Communication ServerOfficial FreeSWITCH SitesFreeSWITCH-users mailing list
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org