Package: pdns-server
Version: 2.9.22-5
Severity: grave
Tags: patch
User: [email protected]
UserTags: debian-edu
User: [email protected]
Usertags: incorrect-dependency
The init.d script in the pdns-server package do not provide the
virtual facility $named, causing all init.d scripts expecting the DNS
server to be operational when they start during boot to fail. I
discovered this with the Debian Edu main-server profile, were we
include a lot of services on the same machine.
Setting the severity to grave, as this causes other packages to fail
to start properly at boot when used on a machine with pdns as the
local DNS resolver.
Providing a virtual facility is implemented by adding a file in
/etc/insserv.conf.d/.
Here is a patch to implement this for pdns-server.
diff -uNr pdns-2.9.22/debian/pdns-server.insserv
pdns-2.9.22-pere/debian/pdns-server.insserv
--- pdns-2.9.22/debian/pdns-server.insserv 1970-01-01 01:00:00.000000000
+0100
+++ pdns-2.9.22-pere/debian/pdns-server.insserv 2010-06-15 10:55:49.858068000
+0200
@@ -0,0 +1 @@
+$named pdns
diff -uNr pdns-2.9.22/debian/rules pdns-2.9.22-pere/debian/rules
--- pdns-2.9.22/debian/rules 2010-04-07 22:34:37.000000000 +0200
+++ pdns-2.9.22-pere/debian/rules 2010-06-15 10:57:14.054724000 +0200
@@ -87,6 +87,10 @@
# Install the stuff
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
$(MAKE) -C pdns/docs html/index.html
+ # Set up init.d virtual facility
+ mkdir -p $(CURDIR)/debian/pdns-server/etc/insserv.conf.d
+ cp $(CURDIR)/debian/pdns-server.insserv \
+ $(CURDIR)/debian/pdns-server/etc/insserv.conf.d/pdns-server
dh_install
Happy hacking,
--
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]