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 1E1AaS-0003SZ-VJ for garchives@archives.gentoo.org; Fri, 05 Aug 2005 22:22:45 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j75MKSsr003339; Fri, 5 Aug 2005 22:20:28 GMT Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.200]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j75MDebb032181 for ; Fri, 5 Aug 2005 22:13:41 GMT Received: by nproxy.gmail.com with SMTP id l37so158352nfc for ; Fri, 05 Aug 2005 15:14:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=oSc5sY0DjhF9DBk+bJDul2qhFNkeksS9QQjs1Ac9uKVHHpngDUpoI1CIP3wBfb3QBAhbthTMquAT/RYbmWTQ4ljuHdqF6gVKu1Q5ymTBfrpbcVrF6nSfikeMHdBeNTgK2YF3diVEi0hdQL1stAC/JFrYvJVjj3hO79nBZjr0QFI= Received: by 10.48.3.17 with SMTP id 17mr111298nfc; Fri, 05 Aug 2005 15:14:35 -0700 (PDT) Received: by 10.48.142.1 with HTTP; Fri, 5 Aug 2005 15:14:35 -0700 (PDT) Message-ID: Date: Sat, 6 Aug 2005 00:14:35 +0200 From: martin nicolas To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] asterisk_nice -5 In-Reply-To: <1123277821.8237.24.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 Content-Type: multipart/alternative; boundary="----=_Part_8358_29000259.1123280075677" References: <1123277821.8237.24.camel@sysconcept.ca> X-Archives-Salt: 8920268d-7468-47c0-b89f-953fd0b6abe8 X-Archives-Hash: 4c45cfa8dee0a2e588790772d1ea2f0c ------=_Part_8358_29000259.1123280075677 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi. There is a configuration file for this script in /etc/conf.d/ ?=20 Maybe in this file there is a vrarible that specify the value of=20 ASTERISK_NICE On 8/5/05, Joseph wrote: >=20 > 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. >=20 > depend() { > need net > use zaptel > } >=20 > start() { > local OPTS USER GROUP >=20 > if [[ -n "${ASTERISK_NICE}" ]]; then > if [[ ${ASTERISK_NICE} -ge -20 ]] && \ > [[ ${ASTERISK_NICE} -le 19 ]]; then > OPTS=3D"--nicelevel ${ASTERISK_NICE}" > else > eerror "Nice value must be between -20 and 19" > fi >=20 > 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. >=20 > -- > #Joseph > -- > gentoo-user@gentoo.org mailing list >=20 >=20 --=20 Nicolas ------=_Part_8358_29000259.1123280075677 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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_N= ICE

On 8/5/05, Joseph <syscon@int= erbaun.com > 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 some= thing 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 "${ASTE= RISK_NICE}" ]]; then
       &nbs= p;        if [[ ${ASTERISK_NICE} -ge -20 ]] && \
    &nbs= p;            &= nbsp; [[ ${ASTERISK_NICE} -le  19 ]]; then
    &= nbsp;           &nbs= p;       OPTS=3D"--nicelevel ${ASTERISK_NICE}"
        &= nbsp;       else
   &n= bsp;            = ;        eerror "Nice value must be between -20 and 19"
   &nbs= p;            f= i

Asterisk run at the same nice level "0" as apache and wh= en 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.

--<= br>#Joseph
--
gentoo-user@g= entoo.org mailing list




--
Nicolas ------=_Part_8358_29000259.1123280075677-- -- gentoo-user@gentoo.org mailing list