------------ 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.
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.
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
This version has been superceded by bind-9.2.1