[Freeswitch-users] systemd

covici at ccs.covici.com covici at ccs.covici.com
Tue Oct 20 02:28:26 MSD 2015


When you created the directory did you change the owner to the user and
group of freeswitch?

rick.jarvis at magicmail.mooo.com wrote:

> Stanislav: I applied this manually as described, but no joy unfortunately.
> 
> Covici: I created /var/run/freeswitch as a directory just in case
> 
> Brian: systemctl status freeswitch.service shows:
> 
> root at voice:/lib/systemd/system# systemctl status freeswitch
> ● freeswitch.service - freeswitch
>    Loaded: loaded (/etc/systemd/system/freeswitch.service; enabled)
>    Active: failed (Result: start-limit) since Mon 2015-10-19 23:19:25 BST; 4s ago
>   Process: 1546 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait $DAEMON_OPTS (code=exited, status=1/FAILURE)
> 
> Oct 19 23:19:25 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1
> Oct 19 23:19:25 voice systemd[1]: Failed to start freeswitch.
> Oct 19 23:19:25 voice systemd[1]: Unit freeswitch.service entered failed state.
> Oct 19 23:19:25 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start.
> Oct 19 23:19:25 voice systemd[1]: Failed to start freeswitch.
> Oct 19 23:19:25 voice systemd[1]: Unit freeswitch.service entered failed state.
> 
> > On 19 Oct 2015, at 22:39, Stanislav Sinyagin <ssinyagin at gmail.com> wrote:
> > 
> > I fixed it in master, and the new 1.6 version is not released yet.
> > You can take a copy of the service file here
> > https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/debian/freeswitch-systemd.freeswitch.service
> > 
> > and install it manually as /lib/systemd/system/freeswitch.service
> > 
> > Then,
> > 
> > systemctl daemon-reload
> > systemctl enable freeswitch
> > 
> > this should work with the latest 1.6 (probably with 1.4 too).
> > 
> > 
> > 
> > 
> > 
> > On Mon, Oct 19, 2015 at 11:14 PM,  <rick.jarvis at magicmail.mooo.com> wrote:
> >> Nothing in /var/log/freeswitch/freeswitch.log
> >> 
> >> Results of running it at command line below. I’ve tried running it with ‘c’
> >> instead of ‘ncwait’ as well, but it complains about the pid
> >> 
> >> root at voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g
> >> freeswitch -ncwait -nonat -rp
> >> 1349 Backgrounding.
> >> FreeSWITCH[1348] Error starting system! pid:1349
> >> root at voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g
> >> freeswitch -c -nonat -rp
> >> Cannot open pid file /var/run/freeswitch/freeswitch.pid.
> >> 
> >> On 19 Oct 2015, at 22:01, covici at ccs.covici.com wrote:
> >> 
> >> Something is preventing fs from starting and systemd keeps trying, but
> >> eventually gives up.  Can you start it by hand with the same parameters?
> >> Can you check the freeswitch.log and see if that says anything?
> >> 
> >> rick.jarvis at magicmail.mooo.com wrote:
> >> 
> >> This is my first Jessie install, so trying to get my head around systemd.
> >> 
> >> I’ve installed from repos, and it all works fine with ‘service start
> >> freeswitch’ as I used to use. However, as update-rc.d doesn’t work for
> >> starting on boot, I figured this is due to the startup changes in jessie.
> >> 
> >> So I followed this to the letter:
> >> 
> >> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video<https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video>
> >> 
> >> But no joy:
> >> 
> >> root at voice:/etc/systemd/system# systemctl start freeswitch
> >> Job for freeswitch.service failed. See 'systemctl status freeswitch.service'
> >> and 'journalctl -xn' for details.
> >> root at voice:/etc/systemd/system# systemctl status freeswitch.service
> >> ● freeswitch.service - freeswitch
> >>  Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled)
> >>  Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST;
> >> 26s ago
> >> Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch
> >> -ncwait -nonat -rp (code=exited, status=1/FAILURE)
> >> 
> >> Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process
> >> exited, code=exited status=1
> >> Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch.
> >> Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed
> >> state.
> >> Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated
> >> too quickly, refusing to start.
> >> Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch.
> >> Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed
> >> state.
> >> 
> >> 
> >> What am I doing wrong?
> >> ----------------------------------------------------
> >> Alternatives:
> >> 
> >> ----------------------------------------------------
> >> _________________________________________________________________________
> >> 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
> >> 
> >> --
> >> Your life is like a penny.  You're going to lose it.  The question is:
> >> How do
> >> you spend it?
> >> 
> >>        John Covici
> >>        covici at ccs.covici.com
> >> 
> >> _________________________________________________________________________
> >> 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
> >> 
> >> 
> >> 
> >> _________________________________________________________________________
> >> 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
> > 
> > _________________________________________________________________________
> > 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
> 
> 
> ----------------------------------------------------
> Alternatives:
> 
> ----------------------------------------------------
> _________________________________________________________________________
> 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
-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici at ccs.covici.com



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