Comment 9 for bug 1311886

Revision history for this message
Yutani (hiroaki-yutani) wrote :

I create the "easy-fix" patch, which rado_p suggested.

The step "2. dpkg attempts to start the daemon." is automatically inserted into the line with the word "#DEBHELPER#" by debhelper.
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/nsd/trusty-proposed/view/head:/debian/nsd.postinst#L4
(For the details, see "Automatic generation of debian install scripts" section of `man debhelper`)

I reordered this step to the last, in order to ensure nsd starts after setup is done.

unbound package uses the right order as below:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/unbound/trusty/view/head:/debian/unbound.postinst