Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1248 - bind-9.1.3-r7.ebuild problems
Summary: bind-9.1.3-r7.ebuild problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ben Lutgens (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-19 18:19 UTC by Jason Jeremias
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Jeremias 2002-03-19 18:19:20 UTC
------------
Problem:
------------
I did a fresh install of bind-9.1.3-r7.ebuild.  The install when find but I had
a few problems I wanted to mention.

1) /etc/bind was empty shouldn't there be a example named.conf and rndc.conf
maybe env an example zone???

2) /etc/init.d/named init script isn't quite right.  

when you start it it tries to put it pidfile in /var/run/named.pid  which would
be fine except:

a) the build created a folder /var/run/named  I can only assume by (b) the
intent was to put the pidfile in /var/run/named/ howerver its trying to put it
in /var/run/named.pid which causes an error.

b) the stop() function in the /etc/init.d/named file is looking for the pidfile
in /var/run/named/named.pid, however when you start its trying to put the file
in /var/run/named.pid this doesn't work.

----------------
Solution:
----------------
I fixed the problem by doing the following:

a) rm -rf /var/run/named
b) modifying the /etc/init.d/named init script stop() function to read:
    start-stop-daemon --stop --quiet --pidfile /var/run/named.pid

that fixes my problems but it many not be the desired solution if you really
wanted the pidfile in /var/run/named/

Also if there was supposed to be some example files in /etc/bind/ they didn't
show up for me so you might want to look at that.
Comment 1 Donny Davies (RETIRED) gentoo-dev 2002-03-20 23:17:38 UTC
IIRC the idea is to make your bind.conf file write the
pidfile to /var/run/named/named.pid.  Then everything
is hunky hory as the /var/run/named dir was specifically
setup for this purpose.



Comment 2 Jason Jeremias 2002-03-21 18:09:24 UTC
Okay, if that's the case maybe it would be a good Idea to put something in the
.ebuild to notify the user of this?  As I said I didn't get any examples in the
/etc/bind directory, or any messages of this fact.  An example bind.conf,
named.conf, rndc.conf would have explained it.  A message echo'd to the screen
like you did with the postfix .ebuild would explain it also.  Just some idea's
to clear up the confusion.  I think the best solution would be to make sure some
sample files were put in the /etc/bind directory so the user has something to
look at.  

-Jason
Comment 3 Ben Lutgens (RETIRED) gentoo-dev 2002-06-02 20:31:19 UTC
This version has been superceded by bind-9.2.1