[Freeswitch-users] Improving freeswitch init script for fedora/centos/redhat/amazon-linux

Robert Mundkowsky rfmundkowsky at yahoo.com
Mon Nov 9 08:33:03 MSK 2015

Not sure if systemd start and stop scripts work on Fedora, but the work nicely on Debian. I copied the ones from:
Also I think the wiki site for Freeswitch is old. Confluence site is newer. 

-------- Original message --------
From: Jun Sun <jsun at junsun.net> 
Date: 11/08/2015  8:46 PM  (GMT-05:00) 
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org> 
Subject: [Freeswitch-users] Improving freeswitch init script for	fedora/centos/redhat/amazon-linux 

I'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.

However I notice that this script does not work reliably.  Specifically restart does not always do the job.
I looked in and did some experiments.  It appears "freeswitch -stop" does not kill the daemon reliably. It is especially so when freeswitch is just starting.
So I add some code to do the killing more persistently.  I also added "status" command. It is tested on amazon linux.  I'm sure it will work on fedora and centos.  Hopefully it can be of help to others in the similar suite.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20151109/66317a59/attachment.html 

Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list