Gentoo Archives: gentoo-user

From: Ow Mun Heng <Ow.Mun.Heng@×××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Named problem, I'm beyond my depth and need a little help here
Date: Tue, 27 Sep 2005 08:56:17
Message-Id: 1127811059.5961.20.camel@neuromancer.home.net
In Reply to: [gentoo-user] Named problem, I'm beyond my depth and need a little help here by Bob Young
1 On Tue, 2005-09-27 at 01:31 -0700, Bob Young wrote:
2 > Installed 2.6.11-hardnend-r15 to use as a secondary DNS server for the
3 > four domains I have. I can get named to start but it's by brute force,
4 > and I want to understand/fix the problem with it not starting via the
5 > default init script.
6 >
7 > Here is what the start{} section of /etc/init.d/named looked like
8 > originally:
9 >
10 > start() {
11 > ebegin "Starting ${CHROOT:+chrooted }named"
12 > checkconfig || return 1
13 > start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec
14 > /usr/sbin/named -u named -n ${CPU} ${OPTIONS} ${CHROOT:+-t $CHROOT}
15 > eend $?
16 > }
17 >
18 >
19 > With that init script, here is the result I get:
20 >
21 > ns BYoung # /etc/init.d/named start
22 > * Starting named ...
23 > usage: named [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
24 > [-p port] [-s] [-t chrootdir] [-u username]
25 > named: extra command line arguments [ !! ]
26 > ns BYoung #
27 >
28 >
29 > *******************************************************************
30
31 Try setting "set -x" somewhere at the start of the init script and look
32 at the verbose output.
33
34 I figure it's something to do with ${OPTIONS} ${CHROOT:+-t $CHROOT}
35 which I presume would be in /etc/conf.d/named(?)
36
37
38 --
39 gentoo-user@g.o mailing list