1 |
Installed 2.6.11-hardnend-r15 to use as a secondary DNS server for the |
2 |
four domains I have. I can get named to start but it's by brute force, |
3 |
and I want to understand/fix the problem with it not starting via the |
4 |
default init script. |
5 |
|
6 |
Here is what the start{} section of /etc/init.d/named looked like |
7 |
originally: |
8 |
|
9 |
start() { |
10 |
ebegin "Starting ${CHROOT:+chrooted }named" |
11 |
checkconfig || return 1 |
12 |
start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec |
13 |
/usr/sbin/named -u named -n ${CPU} ${OPTIONS} ${CHROOT:+-t $CHROOT} |
14 |
eend $? |
15 |
} |
16 |
|
17 |
|
18 |
With that init script, here is the result I get: |
19 |
|
20 |
ns BYoung # /etc/init.d/named start |
21 |
* Starting named ... |
22 |
usage: named [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus] |
23 |
[-p port] [-s] [-t chrootdir] [-u username] |
24 |
named: extra command line arguments [ !! ] |
25 |
ns BYoung # |
26 |
|
27 |
|
28 |
******************************************************************* |
29 |
|
30 |
|
31 |
If I change the start{} section of /etc/init.d/named to this: |
32 |
|
33 |
start() { |
34 |
ebegin "Starting ${CHROOT:+chrooted }named" |
35 |
checkconfig || return 1 |
36 |
/usr/sbin/named -u named -n 1 |
37 |
eend $? |
38 |
} |
39 |
|
40 |
|
41 |
Then I get this result: |
42 |
|
43 |
ns BYoung # /etc/init.d/named start |
44 |
* Re-caching dependency info (mtimes differ)... |
45 |
* Starting named ... [ ok ] |
46 |
ns BYoung # |
47 |
|
48 |
|
49 |
|
50 |
1. Why does the original version of the init script not work? |
51 |
|
52 |
2. What I can change so that it will work? |
53 |
|
54 |
Please don't hesitate to ask for further information if there is |
55 |
something I've left out that would be relevant or helpful. |
56 |
|
57 |
Thanks for any Help |
58 |
Bob Young |
59 |
|
60 |
-- |
61 |
gentoo-user@g.o mailing list |