[gentoo-user] named init-script error
Hello, sorry for posting it again and again but i hope this post will sort out any doubts you could have before. Running named from /etc/init.d/ is not working: $ /etc/init.d/named start * Starting named ... usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus] [-p port] [-s] [-t chrootdir] [-u username] [-m {usage|trace|record}] named: extra command line arguments but running it with the same command from shell is. $ start-stop-daemon --start --quiet --pidfile \ /var/run/named/named.pid --exec /usr/sbin/named -- -u named -n 1 Is that a diffrence between my shell enviroment - bash and the script enviroment - #!/sbin/runscript ? In my /etc/conf.d/named I only have these 2 vars set: OPTIONS= CPU=1 -- Pozdrowienia Piotr Jaroszynski -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] named init-script error
$ /etc/init.d/named start * Starting named ... usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus] [-p port] [-s] [-t chrootdir] [-u username] [-m {usage|trace|record}] named: extra command line arguments What do you think about it? What do you have in /etc/conf.d/named? What version of bind are we talking about? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] named init-script error
What do you have in /etc/conf.d/named? OPTIONS= CPU=1 What version of bind are we talking about? net-dns/bind-9.3.1-r4 -- Best Regards Piotr Jaroszynski -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] named init-script error
What version of bind are we talking about? net-dns/bind-9.3.1-r4 Well, this version is masked, maybe for this reason? I'm running 9.2.5-r6, the latest stable, and do not have this issue... -- gentoo-user@gentoo.org mailing list
[gentoo-user] named init-script error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, How is it possible that: $ /etc/init.d/named start * Starting named ... usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus] [-p port] [-s] [-t chrootdir] [-u username] [-m {usage|trace|record}] named: extra command line arguments is not working as $ start-stop-daemon --start --quiet --pidfile \ /var/run/named/named.pid --exec /usr/sbin/named -- -u named -n 1 works perfectly well. fragment of /etc/init.d/named: start() { ebegin Starting ${CHROOT:+chrooted }named checkconfig || return 1 start-stop-daemon --start --quiet --pidfile ${PIDFILE} - --exec \ /usr/sbin/named #removed this just for testing but nothing changed #\ -- -u named -n ${CPU} ${OPTIONS} ${CHROOT:+-t $CHROOT} eend $? } - -- Best Regards Piotr Jaroszynski -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDKJJAur4yNvGZF0kRArFTAKDpQLA66sJ5eqpawRRVl3btDuEqGwCg2y3t +sV3QJypqK/QbdV8mwx3EqM= =hu6e -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list