[Pkg-pdns-maintainers] Bug#700850: Please add resolvconf dpkg-event hook script

Matthijs Möhlmann matthijs at cacholong.nl
Wed Aug 7 20:42:35 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Thomas,

I have a few questions here:

Is the event hook location still:
/usr/lib/resolvconf/dpkg-event.d/pdns-recursor?

If I install the resolvconf package I do not have the dpkg-event.d
directory.

root at monster # dpkg -l resolvconf
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  resolvconf     1.74         all          name server information
handler

root at monster # ls /usr/lib/resolvconf/dpkg-event.d
ls: cannot access /usr/lib/resolvconf/dpkg-event.d: No such file or
directory

Last question:
I assume that the following is enough for pdns-recursor as the init
script does interact with pdns-recursor:

#!/bin/bash
#
# Update resolvconf

force_reload_pdns_recursor() {
	if which invoke-rc.d >/dev/null 2>&1 ; then
		invoke-rc.d pdns-recursor force-reload
	elif [ -x /etc/init.d/pdns-recursor ] ; then
		/etc/init.d/pdns-recursor force-reload
	fi
}

case "$1" in
	install|remove) force_reload_pdns_recursor ;;
esac

# Indicate succes
exit 0

Regards,
Matthijs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBAgAGBQJSArE2AAoJEAXuPkY28LeM20YQAJ6vCvTVWq6U5ZW248MBlRjT
ryGmcpwB96lA/L91nZhndp/XLDRVWEIsrznIR0hTSFw/qEzf+54DN2PwFgS5dO/j
h+8IK2Tb/PdQ5ymxBU9o/Di8ZbygYarcm3adEwyUs9nYiY391O3uXvHgWiut1Bos
AgrwBeocQZcAVYAglf3AQN9X2AATYKqrAb2SC6GIHDJpRbgp9598jDNY7lcKK2L8
JM7+fxVBl2GsqCF059+kwiYBovlDm1UUx2cpssmQbgsw6VeD5BG7Jd0R6BtOn3eA
Wh4yylCx6ixdTQXg6Ry5jaJaehuRlAVR1SijL5qImbHn8eYvljOX6R8JCR7X3bZB
cgCgkN1khiVYZSja9UVHPbETROErq/aHJ3gLUrgfZUbF5WVUBHb0a4M7rlkLcDXD
SzNZl+pCsJa7WIu923IR+tQ/xUJojhgK/Wy7gmDHdBpRYBhGG67nulKISvXNI9uZ
eCV82Pv1FUBJwMzPXm0leYMgB8k/LzknGeuMP5wT7t+tUa0BfsDZbXgrITkptL9d
6pLdT646vSxFJhaTILAUGj7rWnlcORh6G21Jv5Uxj1uFRpi7N24u1+3vVk5LXHQX
tHYI7nMhNKK46DrJSy39XSGhEW53sjS0hg5tHpolR3Mnc/KHJDz65a40T2WVBujt
QbRkIVaDnGslsW9k8VYH
=RM1J
-----END PGP SIGNATURE-----



More information about the Pkg-pdns-maintainers mailing list