[Freeswitch-docs] Confluence Redirection plug-in

Bote Man bote_radio at botecomm.com
Wed Aug 19 09:19:54 MSD 2015


This is good news. Even better, it is FREE, as in beer!

 

I won’t be able to mess with it this week, and perhaps not next week when I will be traveling.

 

As of a change a few minutes ago I recommend you to install it and test it. Go on!

 

Thanks!

 

Bote

 

 

From: Ítalo Rossi
Sent: Monday, 17 August, 2015 21:27
To: FreeSWITCH Users Help
Cc: FreeSWITCH Docs Team
Subject: Re: [Freeswitch-docs] [Freeswitch-users] systemd won't enable for automatic start of FS

 

Bote,

 

There's a plugin called Redirection from ServiceRocket that could be useful when renaming pages: 

 

https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.redirection

 

On Mon, Aug 17, 2015 at 6:38 PM, Bote Man <bote_radio at botecomm.com> wrote:

Hot off the press, here is the section of the 1.6 installation page dealing with systemd. Let me know if it needs improvement.

 

https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video#FreeSWITCH1.6Video-StartingFreeSWITCH

 

I’m afraid to change the title of that page now that it has been out there so long with links to it, so I just created a Debian 8 page that links to it.

 

Bote

 

 

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Komar, Jason
Sent: Monday, 17 August, 2015 14:51


To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] systemd won't enable for automatic start of FS

 

I couldn't get FreeSWITCH compiled from source to work under systemd on Debian Jessie without having the pid file under /usr/local/freeswitch

 

Here are the contents of my freeswitch.service file that let me get it working if it helps you.

 

[Unit]

Description=freeswitch

;After=syslog.target network.target local-fs.target

After=syslog.target network-online.target local-fs.target

 

[Service]

; service

Type=forking

PIDFile=/usr/local/freeswitch/run/freeswitch.pid

PermissionsStartOnly=true

ExecStartPre=/bin/mkdir -p /usr/local/freeswitch/run

ExecStartPre=/bin/chown freeswitch:daemon /usr/local/freeswitch/run

ExecStart=/usr/local/freeswitch/bin/freeswitch -ncwait -nonat

TimeoutSec=45s

Restart=always

; exec

WorkingDirectory=/usr/local/freeswitch/run

User=freeswitch

Group=daemon

LimitCORE=infinity

LimitNOFILE=100000

LimitNPROC=60000

;LimitSTACK=240

LimitRTPRIO=infinity

LimitRTTIME=7000000

IOSchedulingClass=realtime

IOSchedulingPriority=2

CPUSchedulingPolicy=rr

CPUSchedulingPriority=89

UMask=0007

 

[Install]

WantedBy=multi-user.target

 

-----

Jason

 

On Mon, Aug 17, 2015 at 12:41 PM, Bote Man <bote_radio at botecomm.com> wrote:

Yeah, I saw that ticket where you changed the WorkingDirectory from /run/freeswitch to /var/run/freeswitch and I made those changes to mine, but it’s still flunky.

 

I’ll keep hammering away at it.

 

Thanks.

 

Bote

 

 

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael Jerris
Sent: Monday, 17 August, 2015 14:22


To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] systemd won't enable for automatic start of FS

 

The ones in tree are only for the packages, you would need to modify those to be the correct paths and manually install them.  You can follow the patches that went in to the debian packaging for some indication of how to install them correctly.

 

 

On Aug 17, 2015, at 1:13 PM, Bote Man <bote_radio at botecomm.com> wrote:

 

I copied freeswitch.xml to /etc/freeswitch but I think that is only for sysvinit anyway.

 

I compiled FS from source which runs in a different directory tree than the Debian package. The debs run under /etc/freeswitch while the compiled version runs under /usr/local/freeswitch as I have it configured.

 

Thanks.

 

Bote

 

 

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Volodymyr Fedorov
Sent: Monday, 17 August, 2015 12:48
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] systemd won't enable for automatic start of FS

 

Hello, 

Do you copied sample configs to /etc/freeswitch directory.

 

 

On Mon, Aug 17, 2015 at 7:36 PM, Bote Man < <mailto:bote_radio at botecomm.com> bote_radio at botecomm.com> wrote:

I’m struggling to get systemd to start FreeSWITCH at boot time and also leave it running once it starts.

 

Problem #1 – “systemd enable freeswitch” outputs the right steps, but ends with an error message. The error I get is “No such file or directory” but that is less than helpful.

 

Problem #2 – When I start FreeSWITCH with “systemd start freeswitch” it starts alright, but systemd does not detect FS running properly so it kills it after the specified 45 seconds elapses and restarts it. I can see this in top when FS gets a new pid.

 

Details

--------

It’s a new installation of Debian 8.1 and I chose to use systemd as the init process. I compiled FreeSWITCH from source using the latest Master as of late July. 

 

The only section of the unit file that is supposed to be used by the “enable” command is the [Install] section and that simply points to the multi-user.target as expected.

 

I do not know what to do with the 2 other sample systemd files in /usr/src/freeswitch/debian, perhaps they are key. I have read up on systemd and the FS unit file looks good to my untrained eye. I did not use the sysvinit files that are also in that FS debian directory.

 

I successfully used systemd to start, stop, and enable a few other system services with success so there must be a tweak to the FS unit file that I am missing. I can start FS manually and it runs normally.

 

A Google search revealed a number of complaints that systemd would emit an error message with its “enable” command, yet it would successfully enable the service; this was with a few different services on Debian and Ubuntu, so it seems there might still be some weirdness with systemd on Debian.

 

Has anybody gotten systemd to start FS reliably?

 

Has anybody figured out how to make systemd detect FreeSWITCH running so that it doesn’t restart it repeatedly?

 

Once I figure out how to tame systemd I will document my findings in Confluence as these are the last steps that allow you to get FS up and running quickly.

 

Thanks.

 

 

---

Bote

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-docs/attachments/20150819/300ad990/attachment-0001.html 


Join us at ClueCon 2014 Aug 4-7, 2014
More information about the Freeswitch-docs mailing list