** Description changed: - i've just upgraded to 15.10, and have now found that the - /etc/defaults/bind9 file appears to be ignored. yet another package - broken by the adoption of systemd, it would seem. + [Impact] - >cat /etc/default/bind9 - # run resolvconf? - RESOLVCONF=yes + Server start up options set in /etc/default/bind9 via the OPTIONS + variable are ignored. + The fix is to have the systemd service file source that file and use the + given OPTIONS value. This is already being done in Ubuntu Artful and + higher. The fix here is the same. + + [Test Case] + + # install bind9 + $ sudo apt install bind9 + + # start it up + $ sudo service bind9 start + + # inspect the command line of the process: + $ ps fxaw|grep named|grep -v grep + 396 ? Ssl 0:00 /usr/sbin/named -f -u bind + + # edit /etc/default/bind9 and include "-4" to the OPTIONS value so it looks like this: # startup options for the server OPTIONS="-4 -u bind" - > - >service bind9 stop - > + # restart bind9 + sudo service bind9 restart - >service bind9 start - > + # inspect the process command line again. Only the fixed version of the package will include the newly added "-4" parameter: + $ ps fxaw|grep named|grep -v grep + 17891 ? Ssl 0:00 /usr/sbin/named -f -4 -u bind - >ps -aefwww | grep -iF named - bind 3810 1 17 15:32 ? 00:00:01 /usr/sbin/named -f -u bind - > - modifying /lib/systemd/system/bind9.service works, but this does not - seem to offer the same degree of abstraction provided by the files in - /etc/default/. + [Regression Potential] + Administrators who have for some reason altered the defaults file with an incorrect value for OPTIONS might be surprised after this update, since now that file is actually parsed and if it's indeed incorrect, the service may fail to start. - 1] >lsb_release -rd - Description: Ubuntu 15.10 - Release: 15.10 - - 2] >apt-cache policy bind9 - bind9: - Installed: 1:9.9.5.dfsg-11ubuntu1.3 - Candidate: 1:9.9.5.dfsg-11ubuntu1.3 - Version table: - *** 1:9.9.5.dfsg-11ubuntu1.3 0 - 500 http://us.archive.ubuntu.com/ubuntu/ wily-updates/main amd64 Packages - 500 http://security.ubuntu.com/ubuntu/ wily-security/main amd64 Packages - 100 /var/lib/dpkg/status - 1:9.9.5.dfsg-11ubuntu1 0 - 500 http://us.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages - - 3] i expected to be able to be able to make changes in - /etc/defaults/bind9 and have them honored. - - 4] they are not. + [Other Info] + None at this time.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1565060 Title: defaults file is ignored To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bind9/+bug/1565060/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs