<div dir="ltr">I&#39;m porting freeswitch to amazon linux running on an EC2 instance.  And I have installed the following fedora init script to automatically start/stop freeswitch.<div><br></div><div><a href="https://wiki.freeswitch.org/wiki/Freeswitch_init">https://wiki.freeswitch.org/wiki/Freeswitch_init</a><br></div><div><br></div><div>However I notice that this script does not work reliably.  Specifically restart does not always do the job.</div><div><br></div><div>I looked in and did some experiments.  It appears &quot;freeswitch -stop&quot; does not kill the daemon reliably. It is especially so when freeswitch is just starting.</div><div><br></div><div>So I add some code to do the killing more persistently.  I also added &quot;status&quot; command. It is tested on amazon linux.  I&#39;m sure it will work on fedora and centos.  Hopefully it can be of help to others in the similar suite.</div><div><br></div><div>Jun</div><div><br></div></div>