[Freeswitch-users] [init.d] Waiting until FS is actually ready?

GillesToo codecomplete at free.fr
Wed May 26 03:50:17 PDT 2010


Hello,

On a CentOS host, I use the RedHat init script to start up Freeswitch at
boot time:

----
http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Running_FreeSWITCH

cp build/freeswitch.init.redhat /etc/init.d/freeswitch
chmod 755 /etc/init.d/freeswitch
----

However, I also use this script to start the server semi-manually when doing
tests, but the script returns "OK" right away, even though Freeswitch is
still in the process of starting up (eg. NAT, PMP, etc.) so I have to wait
about 20 seconds before running fs_cli so I can connect to it without an
error.

What should I add/change to the init script so that it only returns "OK"
once FS is really up and running?

Thank you.

-- 
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/init-d-Waiting-until-FS-is-actually-ready-tp5102826p5102826.html
Sent from the freeswitch-users mailing list archive at Nabble.com.



More information about the FreeSWITCH-users mailing list