Re: rtprio + su - doesn't work

2008-08-22 Thread Wojciech Puchar
tu run (at startup) asterisk PBX as user centrala with realtime priority. asterisk is started, but without realtime priority. Yes, you'd be running the su process with realtime priority. :-) and su forks shell and asterisk - isn't it? how to do this right? i run asterisk as user (not

Re: rtprio + su - doesn't work

2008-08-22 Thread Oliver Fromme
Wojciech Puchar wrote: /usr/sbin/rtprio 31 /usr/bin/su centrala -c \ /usr/local/bin/asterisk -C /centrala/etc/asterisk.conf asterisk is started, but without realtime priority. I'm not sure what's wrong, but it works fine for me: # rtprio 31 su -m nobody -c 'id; /usr/sbin/rtprio'

Re: rtprio + su - doesn't work

2008-08-22 Thread Wojciech Puchar
I'm not sure what's wrong, but it works fine for me: # rtprio 31 su -m nobody -c 'id; /usr/sbin/rtprio' uid=65534(nobody) gid=65534(nobody) groups=65534(nobody) rtprio: realtime priority 31 # This is on 7-stable (a few months old, though). i have 7 stable too. no idea :) maybe asterisk have

Re: rtprio + su - doesn't work

2008-08-22 Thread Chuck Swiger
On Aug 22, 2008, at 6:28 AM, Wojciech Puchar wrote: tu run (at startup) asterisk PBX as user centrala with realtime priority. asterisk is started, but without realtime priority. Yes, you'd be running the su process with realtime priority. :-) and su forks shell and asterisk - isn't it?

rtprio + su - doesn't work

2008-08-21 Thread Wojciech Puchar
i run such command /usr/sbin/rtprio 31 /usr/bin/su centrala -c \ /usr/local/bin/asterisk -C /centrala/etc/asterisk.conf tu run (at startup) asterisk PBX as user centrala with realtime priority. asterisk is started, but without realtime priority. how to do this right? i run asterisk as user

Re: rtprio + su - doesn't work

2008-08-21 Thread Chuck Swiger
On Aug 21, 2008, at 2:04 PM, Wojciech Puchar wrote: i run such command /usr/sbin/rtprio 31 /usr/bin/su centrala -c \ /usr/local/bin/asterisk -C /centrala/etc/asterisk.conf tu run (at startup) asterisk PBX as user centrala with realtime priority. asterisk is started, but without realtime