Hi, I have unpleasent short audio gaps when a perl based agi scripts starts. Thus, I now started to put all those things in C programmed daemons for fast-agi. Anyway I'm looking for another mean, which would help me more quickly. I noticed, that all agi scripts are running with system priority -11, like asterisk does. This is really waste of priority. I would like to have the AGI scripts running with much lower priority than asterisk. Is there any mean to let AGI scripts run in a lower priority (except starting a new shell from the a short initial AGI script)? Roger.
>>>>> "RS" == Roger Schreiter <roger@planinternet.de> writes:RS> Is there any mean to let AGI scripts run in a lower priority RS> (except starting a new shell from the a short initial AGI script)? You can start the script with renice 15 $$, or whichever value you prefer. If the hickup happens because of the process startup, this will not help, but at least it is easy to try out. /Benny
Eric "ManxPower" Wieling
2006-Mar-24 11:00 UTC
[Asterisk-Users] Re: How to nice agi scripts?
setpriority(0, 0, 20); This is for Perl, of course. Benny Amorsen wrote:>>>>>> "RS" == Roger Schreiter <roger@planinternet.de> writes: > > RS> Is there any mean to let AGI scripts run in a lower priority > RS> (except starting a new shell from the a short initial AGI script)? > > You can start the script with renice 15 $$, or whichever value you > prefer. If the hickup happens because of the process startup, this > will not help, but at least it is easy to try out. > > > /Benny > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >