* [gentoo-user] asterisk_nice -5
@ 2005-08-05 21:37 Joseph
2005-08-05 22:14 ` martin nicolas
0 siblings, 1 reply; 3+ messages in thread
From: Joseph @ 2005-08-05 21:37 UTC (permalink / raw
To: gentoo
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] asterisk_nice -5
2005-08-05 21:37 [gentoo-user] asterisk_nice -5 Joseph
@ 2005-08-05 22:14 ` martin nicolas
2005-08-05 22:50 ` Joseph
0 siblings, 1 reply; 3+ messages in thread
From: martin nicolas @ 2005-08-05 22:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]
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 <syscon@interbaun.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 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
[-- Attachment #2: Type: text/html, Size: 2367 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] asterisk_nice -5
2005-08-05 22:14 ` martin nicolas
@ 2005-08-05 22:50 ` Joseph
0 siblings, 0 replies; 3+ messages in thread
From: Joseph @ 2005-08-05 22:50 UTC (permalink / raw
To: gentoo-user
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 <syscon@interbaun.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 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-05 22:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-05 21:37 [gentoo-user] asterisk_nice -5 Joseph
2005-08-05 22:14 ` martin nicolas
2005-08-05 22:50 ` Joseph
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox