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 1E19wH-0005Tg-3A for garchives@archives.gentoo.org; Fri, 05 Aug 2005 21:41:13 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j75LdOll016524; Fri, 5 Aug 2005 21:39:24 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 j75LZmel019863 for ; Fri, 5 Aug 2005 21:35:49 GMT Received: by sysconcept.ca (Postfix, from userid 1000) id 202B52EB37F; Fri, 5 Aug 2005 15:37:02 -0600 (MDT) Subject: [gentoo-user] asterisk_nice -5 From: Joseph To: gentoo Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 05 Aug 2005 15:37:01 -0600 Message-Id: <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 X-Mailer: Evolution 2.2.3 X-Archives-Salt: b8d70e92-c25f-4d82-8d90-2218a94ff297 X-Archives-Hash: 80ff2679532ff082b9e0048d6568b7a8 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