1 |
Hi. |
2 |
There is a configuration file for this script in /etc/conf.d/ ? |
3 |
Maybe in this file there is a vrarible that specify the value of |
4 |
ASTERISK_NICE |
5 |
|
6 |
On 8/5/05, Joseph <syscon@×××××××××.com> wrote: |
7 |
> |
8 |
> Can any body give am a helping hand how to modify asterisk startup |
9 |
> script to start it with let say nice -5 |
10 |
> I think I'll need to modify something in the beginning in this section, |
11 |
> but I don't exactly know how. |
12 |
> |
13 |
> depend() { |
14 |
> need net |
15 |
> use zaptel |
16 |
> } |
17 |
> |
18 |
> start() { |
19 |
> local OPTS USER GROUP |
20 |
> |
21 |
> if [[ -n "${ASTERISK_NICE}" ]]; then |
22 |
> if [[ ${ASTERISK_NICE} -ge -20 ]] && \ |
23 |
> [[ ${ASTERISK_NICE} -le 19 ]]; then |
24 |
> OPTS="--nicelevel ${ASTERISK_NICE}" |
25 |
> else |
26 |
> eerror "Nice value must be between -20 and 19" |
27 |
> fi |
28 |
> |
29 |
> Asterisk run at the same nice level "0" as apache and when the fax comes |
30 |
> in sometimes I get a lot of bad lines. |
31 |
> So, adjusting nice level to -5 for asterisk might help. |
32 |
> Asterisk intercept faxes and forwards it to a fax extension. |
33 |
> |
34 |
> -- |
35 |
> #Joseph |
36 |
> -- |
37 |
> gentoo-user@g.o mailing list |
38 |
> |
39 |
> |
40 |
|
41 |
|
42 |
-- |
43 |
Nicolas |