defaults file is ignored
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bind9 (Debian) |
Fix Released
|
Unknown
|
|||
bind9 (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Andreas Hasenack | ||
Yakkety |
Won't Fix
|
Undecided
|
Unassigned | ||
Zesty |
Fix Released
|
Medium
|
Andreas Hasenack |
Bug Description
[Impact]
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"
# restart bind9
sudo service bind9 restart
# 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
[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.
[Other Info]
None at this time.
Changed in bind9 (Ubuntu): | |
importance: | Undecided → High |
Changed in bind9 (Debian): | |
status: | Unknown → New |
Changed in bind9 (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in bind9 (Debian): | |
status: | New → Fix Committed |
Changed in bind9 (Ubuntu Yakkety): | |
status: | Confirmed → Won't Fix |
Changed in bind9 (Ubuntu Xenial): | |
status: | Confirmed → In Progress |
Changed in bind9 (Ubuntu Zesty): | |
status: | New → In Progress |
Changed in bind9 (Ubuntu Xenial): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
Changed in bind9 (Ubuntu Zesty): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
Changed in bind9 (Ubuntu Zesty): | |
importance: | Undecided → Low |
Changed in bind9 (Ubuntu Xenial): | |
importance: | Undecided → Low |
Changed in bind9 (Ubuntu Zesty): | |
importance: | Low → Medium |
Changed in bind9 (Ubuntu Xenial): | |
importance: | Low → Medium |
description: | updated |
Changed in bind9 (Debian): | |
status: | Fix Committed → New |
Changed in bind9 (Debian): | |
status: | New → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.