From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E1B5k-0002og-QE for garchives@archives.gentoo.org; Fri, 05 Aug 2005 22:55:05 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j75MrIjA016601; Fri, 5 Aug 2005 22:53:18 GMT Received: from sysconcept.ca (103.205-206-12-0.interbaun.com [205.206.12.103] (may be forged)) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j75Mnefk022400 for ; Fri, 5 Aug 2005 22:49:41 GMT Received: by sysconcept.ca (Postfix, from userid 1000) id 76D252EB37F; Fri, 5 Aug 2005 16:50:55 -0600 (MDT) Subject: Re: [gentoo-user] asterisk_nice -5 From: Joseph To: gentoo-user@lists.gentoo.org In-Reply-To: References: <1123277821.8237.24.camel@sysconcept.ca> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 05 Aug 2005 16:50:55 -0600 Message-Id: <1123282255.8239.30.camel@sysconcept.ca> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 X-Archives-Salt: 14ce4dcf-d426-4b82-98e4-b19dbb305f2e X-Archives-Hash: 675424ce8262f2d99fed1e0de0727b4a Here is how to script ends and asterisk is started from this command: fi start-stop-daemon --start --exec /usr/sbin/asterisk \ ${OPTS} -- ${ASTERISK_OPTS} I've change it to: fi start-stop-daemon --start --exec /usr/bin/nice -n -15 /usr/sbin/asterisk \ ${OPTS} -- ${ASTERISK_OPTS} Doesn't matter what value I use it "-n -5" or "-n -15" asterisk runs at nice value 10 instead of -5 or -15. -- #Joseph On Sat, 2005-08-06 at 00:14 +0200, martin nicolas wrote: > Hi. > There is a configuration file for this script in /etc/conf.d/ ? > Maybe in this file there is a vrarible that specify the value of > ASTERISK_NICE > > On 8/5/05, Joseph wrote: > Can any body give am a helping hand how to modify asterisk > startup > script to start it with let say nice -5 > I think I'll need to modify something in the beginning in this > section, > but I don't exactly know how. > > depend() { > need net > use zaptel > } > > start() { > local OPTS USER GROUP > > if [[ -n "${ASTERISK_NICE}" ]]; then > if [[ ${ASTERISK_NICE} -ge -20 ]] && \ > [[ ${ASTERISK_NICE} -le 19 ]]; then > OPTS="--nicelevel ${ASTERISK_NICE}" > else > eerror "Nice value must be between -20 > and 19" > fi > > Asterisk run at the same nice level "0" as apache and when the > fax comes > in sometimes I get a lot of bad lines. > So, adjusting nice level to -5 for asterisk might help. > Asterisk intercept faxes and forwards it to a fax extension. > > -- > #Joseph > -- > gentoo-user@gentoo.org mailing list > > > > > -- > Nicolas -- gentoo-user@gentoo.org mailing list