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

Stanislav Sinyagin ssinyagin at gmail.com
Mon Nov 9 11:37:43 MSK 2015


the Debian systemd files should work on RHEL derivatives without problems.
Also there's an ongoing work to have better systemd files for them:
https://freeswitch.org/jira/browse/FS-8369



On Mon, Nov 9, 2015 at 6:33 AM, Robert Mundkowsky
<rfmundkowsky at yahoo.com> wrote:
> Not sure if systemd start and stop scripts work on Fedora, but the work
> nicely on Debian. I copied the ones from:
>
> https://freeswitch.org/confluence/plugins/servlet/mobile#content/view/7144556
>
> Also I think the wiki site for Freeswitch is old. Confluence site is newer.
>
> Robert
>
>
> -------- 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.
>
> https://wiki.freeswitch.org/wiki/Freeswitch_init
>
> 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.
>
> Jun
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



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