DragonFly BSD
DragonFly users List (threaded) for 2006-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: pkgsrc bind9 still trying to run base bind


To: Adrian Michael Nida <nida@xxxxxxxx>
From: Mark Cullen <mark.r.cullen@xxxxxxxxx>
Date: Mon, 24 Apr 2006 19:43:16 +0100

Adrian Michael Nida wrote:
On Mon, 2006-04-24 at 18:45 +0100, Mark Cullen wrote:

I'm probably missing something really obvious here but I can't figure it out.

I installed bind9 from pkgsrc, copied the rc script to /usr/pkg/etc/rc.d and added:

named="NO"
named9="YES"

to /etc/rc.conf. However, when I run the rc script it's apparently still trying to run the base named (v9.2.4 as opposed to pkgsrc's 9.3.1) according to the output from /var/log/messages:

Apr 26 15:37:51 df named[40012]: starting BIND 9.2.4rc4 -u named -t /etc/namedb

Can anyone point me in the right direction / spot if I have done anything wrong?

Apologies for all the noise I am making here :-)



Do you need to change your PATH environment variable so that the pkgsrc
executable gets picked up before the one in base?

Just a thought,

Adrian


From what I can tell the installed named9 rc script uses the full path to the binary, so my $PATH shouldn't have anything to do with it, no?


(see the command="" line below)
---

(root@df)/usr/pkg/etc/rc.d# cat named9
#!/bin/sh
#
# $NetBSD: named9.sh,v 1.3 2005/05/17 13:17:34 sketch Exp $
#

# PROVIDE: named
# REQUIRE: SERVERS
# BEFORE:  DAEMON
# KEYWORD: chrootdir

. /etc/rc.subr

name="named"
rcvar="${name}9"
command="/usr/pkg/sbin/${name}"
pidfile="/var/run/${name}.pid"
start_precmd="named_precmd"
extra_commands="reload"
required_dirs="$named_chrootdir"        # if it is set, it must exist

[...snip...]



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]