<div dir="ltr"><div><div><div><br></div>This is the pastebin of the freeswitch init script on my Debian 8 system.<br><br><a href="http://pastebin.com/7mmw9ghx">http://pastebin.com/7mmw9ghx</a><br><br></div>Freeswitch starts OK, only that it starts with the wrong configuration, ie I can log in via fs_cli but then non of the conf files would have kicked. Even when I disable it and run freeswitch from /etc/rc.local Freeswitch doesn't work. I usually have to login first then run Freeswitch from the command line, but is not very good because if the system needs to be rebooted for some reason Freeswitch needs to be manually started.<br><br></div>When I examine the file the only thing that seems to be wrong is that the DAEMON_ARGS variable does not include the freeswitch configuration file or directory or that the configuratin file defined by /etc/default/$NAME is undefined. This seems to imply that if I add " -c /usr/local/freeswitch/conf' " to DAEMON_ARGS freeswitch should start but it doesn't. If that is the case what should go into /etc/default/$NAME ?<br><div><br><div class=""><span class=""># PATH should only include /usr/* if it runs after the mountnfs.sh script</span></div>
<div class=""><span class="">PATH</span>=<span class="">/</span>sbin:<span class="">/</span>usr<span class="">/</span>sbin:<span class="">/</span>bin:<span class="">/</span>usr<span class="">/</span>bin:<span class="">/</span>usr<span class="">/</span>local<span class="">/</span>bin</div>
<div class=""><span class="">DESC</span>=<span class="">"Freeswitch"</span></div>
<div class=""><span class="">NAME</span>=freeswitch</div>
<div class=""><span class="">DAEMON</span>=<span class="">/</span>usr<span class="">/</span>local<span class="">/</span>freeswitch<span class="">/</span>bin<span class="">/</span><span class="">$NAME</span></div>
<div class=""><span class="">DAEMON_ARGS</span>=<span class="">"-nc -nonat"</span></div>
<div class=""><span class="">PIDFILE</span>=<span class="">/</span>usr<span class="">/</span>local<span class="">/</span>freeswitch<span class="">/</span>run<span class="">/</span><span class="">$NAME</span>.pid</div>
<div class=""><span class="">SCRIPTNAME</span>=<span class="">/</span>etc<span class="">/</span>init.d<span class="">/</span><span class="">$NAME</span></div>
<div class=""> </div>
<div class=""><span class="">FS_USER</span>=freeswitch</div>
<div class=""><span class="">FS_GROUP</span>=daemon</div>
<div class=""> </div>
<div class=""><span class=""># Exit if the package is not installed</span></div>
<div class=""><span class="">[</span> <span class="">-x</span> <span class="">"<span class="">$DAEMON</span>"</span> <span class="">]</span> <span class="">||</span> <span class="">exit</span> <span class="">0</span></div>
<div class=""> </div>
<div class=""><span class=""># Read configuration variable file if it is present</span></div>
<div class=""><span class="">[</span> <span class="">-r</span> <span class="">/</span>etc<span class="">/</span>default<span class="">/</span><span class="">$NAME</span> <span class="">]</span> <span class="">&&</span> . <span class="">/</span>etc<span class="">/</span>default<span class="">/</span><span class="">$NAME</span></div>
<div class=""> </div>
<div class=""><span class=""># Load the VERBOSE setting and other rcS variables</span></div>
<div class="">. <span class="">/</span>lib<span class="">/</span>init<span class="">/</span>vars.sh</div>
<div class=""> </div>
<div class=""><span class=""># Define LSB log_* functions.</span></div>
<div class=""><span class=""># Depend on lsb-base (>= 3.0-6) to ensure that this file is present.</span></div>
. <span class="">/</span>lib<span class="">/</span>lsb<span class="">/</span>init-functions<br clear="all"><div><div><div><br>-- <br><div class="gmail_signature">Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com" target="_blank">http://devblog.brahmancreations.com</a></div>
</div></div></div></div></div>