[Freeswitch-users] systemd won't enable for automatic start of FS
Bote Man
bote_radio at botecomm.com
Mon Aug 17 20:36:52 MSD 2015
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-users/attachments/20150817/629fb9fd/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list