[Freeswitch-users] Startup script is not respecting real time priority

Babak Yakhchali babak.freeswitch at gmail.com
Mon Jan 19 10:32:47 MSK 2015


adding the line below to "/etc/security/limits.conf" solves my problem:
freeswitch    -    nice    -20


On Sat, Jan 17, 2015 at 4:24 PM, Babak Yakhchali <babak.freeswitch at gmail.com
> wrote:

> Hi
> I'm using startup script supplied in repo for centos 6.5 and setting the
> -rp like this:
>
> PROG_NAME=freeswitch
> PID_FILE=/usr/local/freeswitch/run/freeswitch.pid
> FS_USER=freeswitch
> FS_FILE=/usr/local/freeswitch/bin/freeswitch
> FS_HOME=/usr/local/freeswitch/run
> LOCK_FILE=/var/lock/subsys/freeswitch
> *FREESWITCH_ARGS="-nc -rp"*
> RETVAL=0
>
> but freeswitch is always running with default priority as seen in top:
>
> 16263 freeswit  39  19  875m  30m 7416 S  1.0 13.0   0:17.44 freeswitch
>
> and in "ps aux|grep freeswitch" I see:
> 500      16263  0.8 12.9 897004 31120 ?        SNl  15:38   0:18
> /usr/local/freeswitch/bin/freeswitch -nc -rp
> so it seems freeswitch is starting with proper args but priority is not
> set.
> If I run freeswitch as root in bash it is working will:
> runing ./freeswitch -nc -rp results in:
> 16550 root      -2 -10  865m  28m 6988 S  6.3 12.2   0:00.52 freeswitch
> Should I change anything else in the script? or add any special permission
> to user "freeswitch"?
> Thanks
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150119/9f290720/attachment.html 


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