CentOS 7 systemctl start freeswitch
Hi, I am using CentOS 7 and tried to start the freeswitch with systemctl start freeswitch. It is working with freeswitch -nc but the systemctl start freeswitch is using the freeswitch:daemon user, a shown below root@localhost bin]# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/usr/lib/systemd/system/freeswitch.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit) since Thu 2019-11-21 09:05:16 EST; 8s ago Process: 4251 ExecStart=/usr/bin/freeswitch -u freeswitch -g daemon -ncwait $DAEMON_OPTS (code=exited, status=1/FAILURE) Process: 4249 ExecStartPre=/bin/chown -R freeswitch:daemon /var/run/freeswitch/ (code=exited, status=0/SUCCESS) Process: 4248 ExecStartPre=/bin/mkdir -p /var/run/freeswitch/ (code=exited, status=0/SUCCESS) Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service: control process exited, code=exited status=1 Nov 21 09:05:16 localhost.localdomain systemd[1]: Failed to start freeswitch. Nov 21 09:05:16 localhost.localdomain systemd[1]: Unit freeswitch.service entered failed state. Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service failed. Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service holdoff time over, scheduling restart. Nov 21 09:05:16 localhost.localdomain systemd[1]: Stopped freeswitch. Nov 21 09:05:16 localhost.localdomain systemd[1]: start request repeated too quickly for freeswitch.service Nov 21 09:05:16 localhost.localdomain systemd[1]: Failed to start freeswitch. Nov 21 09:05:16 localhost.localdomain systemd[1]: Unit freeswitch.service entered failed state. Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service failed. Although permissions of the folders the below folders are set for the user freeswitch drwxr-xr-x 13 freeswitch daemon 4096 Nov 17 15:36 /etc/freeswitch/ drwxr-x--- 2 freeswitch daemon 40 Nov 21 09:05 /var/run/freeswitch/ drwxr-xr-x 13 freeswitch daemon 4096 Nov 17 15:36 /etc/freeswitch/ -rwxr-xr-x. 1 freeswitch daemon 28336 Aug 20 15:08 /usr/bin/freeswitch
Check the permissions for /var/log/freeswitch/ too. If it's fine, look at the data collected in /var/log/freeswitch/freeswitch.log; towards the end of the file you should have some meaningful explication for the ungraceful/premature exit. On Mon, 25 Nov 2019 at 14:07, Abdirahman A. Osman <abdirahman.osm@gmail.com> wrote:
Hi,
I am using CentOS 7 and tried to start the freeswitch with systemctl start freeswitch.
It is working with freeswitch -nc but the systemctl start freeswitch is using the freeswitch:daemon user, a shown below
root@localhost bin]# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/usr/lib/systemd/system/freeswitch.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit) since Thu 2019-11-21 09:05:16 EST; 8s ago Process: 4251 ExecStart=/usr/bin/freeswitch -u freeswitch -g daemon -ncwait $DAEMON_OPTS (code=exited, status=1/FAILURE) Process: 4249 ExecStartPre=/bin/chown -R freeswitch:daemon /var/run/freeswitch/ (code=exited, status=0/SUCCESS) Process: 4248 ExecStartPre=/bin/mkdir -p /var/run/freeswitch/ (code=exited, status=0/SUCCESS)
Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service: control process exited, code=exited status=1 Nov 21 09:05:16 localhost.localdomain systemd[1]: Failed to start freeswitch. Nov 21 09:05:16 localhost.localdomain systemd[1]: Unit freeswitch.service entered failed state. Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service failed. Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service holdoff time over, scheduling restart. Nov 21 09:05:16 localhost.localdomain systemd[1]: Stopped freeswitch. Nov 21 09:05:16 localhost.localdomain systemd[1]: start request repeated too quickly for freeswitch.service Nov 21 09:05:16 localhost.localdomain systemd[1]: Failed to start freeswitch. Nov 21 09:05:16 localhost.localdomain systemd[1]: Unit freeswitch.service entered failed state. Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service failed.
Although permissions of the folders the below folders are set for the user freeswitch
drwxr-xr-x 13 freeswitch daemon 4096 Nov 17 15:36 /etc/freeswitch/ drwxr-x--- 2 freeswitch daemon 40 Nov 21 09:05 /var/run/freeswitch/ drwxr-xr-x 13 freeswitch daemon 4096 Nov 17 15:36 /etc/freeswitch/ -rwxr-xr-x. 1 freeswitch daemon 28336 Aug 20 15:08 /usr/bin/freeswitch
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Best Regards, Ciprian Dosoftei The information transmitted is intended only for the addressee and may contain privileged and/or confidential material. If you are not the intended recipient, kindly contact the sender and delete the message. Any disclosure, distribution or copying of this message is strictly prohibited without the expressed permission of the sender.
Start it from the command line as freeswitch. this is very probably a permissions issue as Ciprian pointed out. How did you install FS? Did you compile it or installed from some package? Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Mon, Nov 25, 2019 at 8:24 PM Ciprian Dosoftei <ciprian.dosoftei@gmail.com> wrote:
Check the permissions for /var/log/freeswitch/ too. If it's fine, look at the data collected in /var/log/freeswitch/freeswitch.log; towards the end of the file you should have some meaningful explication for the ungraceful/premature exit.
On Mon, 25 Nov 2019 at 14:07, Abdirahman A. Osman < abdirahman.osm@gmail.com> wrote:
Hi,
I am using CentOS 7 and tried to start the freeswitch with systemctl start freeswitch.
It is working with freeswitch -nc but the systemctl start freeswitch is using the freeswitch:daemon user, a shown below
root@localhost bin]# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/usr/lib/systemd/system/freeswitch.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit) since Thu 2019-11-21 09:05:16 EST; 8s ago Process: 4251 ExecStart=/usr/bin/freeswitch -u freeswitch -g daemon -ncwait $DAEMON_OPTS (code=exited, status=1/FAILURE) Process: 4249 ExecStartPre=/bin/chown -R freeswitch:daemon /var/run/freeswitch/ (code=exited, status=0/SUCCESS) Process: 4248 ExecStartPre=/bin/mkdir -p /var/run/freeswitch/ (code=exited, status=0/SUCCESS)
Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service: control process exited, code=exited status=1 Nov 21 09:05:16 localhost.localdomain systemd[1]: Failed to start freeswitch. Nov 21 09:05:16 localhost.localdomain systemd[1]: Unit freeswitch.service entered failed state. Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service failed. Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service holdoff time over, scheduling restart. Nov 21 09:05:16 localhost.localdomain systemd[1]: Stopped freeswitch. Nov 21 09:05:16 localhost.localdomain systemd[1]: start request repeated too quickly for freeswitch.service Nov 21 09:05:16 localhost.localdomain systemd[1]: Failed to start freeswitch. Nov 21 09:05:16 localhost.localdomain systemd[1]: Unit freeswitch.service entered failed state. Nov 21 09:05:16 localhost.localdomain systemd[1]: freeswitch.service failed.
Although permissions of the folders the below folders are set for the user freeswitch
drwxr-xr-x 13 freeswitch daemon 4096 Nov 17 15:36 /etc/freeswitch/ drwxr-x--- 2 freeswitch daemon 40 Nov 21 09:05 /var/run/freeswitch/ drwxr-xr-x 13 freeswitch daemon 4096 Nov 17 15:36 /etc/freeswitch/ -rwxr-xr-x. 1 freeswitch daemon 28336 Aug 20 15:08 /usr/bin/freeswitch
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Best Regards, Ciprian Dosoftei
The information transmitted is intended only for the addressee and may contain privileged and/or confidential material. If you are not the intended recipient, kindly contact the sender and delete the message.
Any disclosure, distribution or copying of this message is strictly prohibited without the expressed permission of the sender. _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (3)
-
Abdirahman A. Osman
-
Ciprian Dosoftei
-
David Villasmil