2

I have just installed Freeswitch in Centos7 . when i check my Freeswitch status , its failing to start with following error. Any help would be highly appreciated.

I have attached copy of both command and the logs file showing errors as well

Starting freeswitch

 [root@localhost log]# systemctl start freeswitch
 [root@localhost log]# systemctl status freeswitch
    ●Started FreeSWITCH.
 Feb 17 22:56:38 localhost freeswitch: ERROR: Failed to set SCHED_FIFO scheduler (Operation not permitted)
    Feb 17 22:56:38 localhost freeswitch: ERROR: Could not set nice level
    Feb 17 22:56:38 localhost freeswitch: Cannot open pid file /opt/freeswitch/run/freeswitch.pid.
    Feb 17 22:56:38 localhost systemd: freeswitch.service: main process exited, code=exited, status=255/n/a
    Feb 17 22:56:38 localhost systemd: Unit freeswitch.service entered failed state.
    Feb 17 22:56:38 localhost systemd: freeswitch.service failed.
delek tashi
  • 113
  • 1
  • 7

3 Answers3

1

Need to check logs for errors at /var/log/freeswitch/ directory.

Sergey Safarov
  • 436
  • 4
  • 11
0

It might be because of a permission problem. Try this:

$ chmod 777 freeswitch
Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
-1
ps aux | grep freeswitch

Check whether a freeswitch is already running so it can't open the pid file:

/opt/freeswitch/run/freeswitch.pid

If there is a freeswitch already running, kill it:

kill 9 {pid}
AnonymousX
  • 638
  • 7
  • 8