<div dir="ltr">adding the line below to "<span style="color:rgb(0,0,0);font-family:Ubuntubeta,Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;font-size:13px;line-height:15.9899997711182px;background-color:rgb(235,236,228)">/etc/security/limits.conf"</span> solves my problem:<div>freeswitch - nice -20<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 17, 2015 at 4:24 PM, Babak Yakhchali <span dir="ltr"><<a href="mailto:babak.freeswitch@gmail.com" target="_blank">babak.freeswitch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div>I'm using startup script supplied in repo for centos 6.5 and setting the -rp like this:</div><div><br></div><div><div>PROG_NAME=freeswitch</div><div>PID_FILE=/usr/local/freeswitch/run/freeswitch.pid</div><div>FS_USER=freeswitch</div><div>FS_FILE=/usr/local/freeswitch/bin/freeswitch</div><div>FS_HOME=/usr/local/freeswitch/run</div><div>LOCK_FILE=/var/lock/subsys/freeswitch</div><div><b>FREESWITCH_ARGS="-nc -rp"</b></div><div>RETVAL=0</div></div><div><br></div><div>but freeswitch is always running with default priority as seen in top:</div><div><div><br></div></div><div><div>16263 freeswit 39 19 875m 30m 7416 S 1.0 13.0 0:17.44 freeswitch</div></div><div><br></div><div>and in "ps aux|grep freeswitch" I see:</div><div>500 16263 0.8 12.9 897004 31120 ? SNl 15:38 0:18 /usr/local/freeswitch/bin/freeswitch -nc -rp<br></div><div>so it seems freeswitch is starting with proper args but priority is not set.</div><div>If I run freeswitch as root in bash it is working will:</div><div>runing ./freeswitch -nc -rp results in:</div><div><div>16550 root -2 -10 865m 28m 6988 S 6.3 12.2 0:00.52 freeswitch</div></div><div>Should I change anything else in the script? or add any special permission to user "freeswitch"?</div><div>Thanks</div><div><br></div><div><br></div></div>
</blockquote></div><br></div>