The systemd unit for DNS server should use the default config

Bug #1575514 reported by Stefan Bader
This bug report is a duplicate of:  Bug #1565060: defaults file is ignored. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bind9 (Debian)
Unknown
Unknown
bind9 (Ubuntu)
Triaged
Low
Unassigned
Nominated for Xenial by Stefan Bader

Bug Description

Release: Xenial/16.04

While trying to quiet down IPv6 related messaged from named (not quite there, yet), I added the relevant options to the defaults file (/etc/default/bind9 -> OPTIONS="-u bind"). Unfortunately this file is totally ignored by the systemd service unit. After changing it like below, I got the desired behaviour:

/lib/systemd/system/bind9.service:
...
 [Service]
+EnvironmentFile=/etc/default/bind9
-ExecStart=/usr/sbin/named -f -u bind
+ExecStart=/usr/sbin/named -f $OPTIONS
 ExecReload=/usr/sbin/rndc reload
 ExecStop=/usr/sbin/rndc stop

Tags: xenial
Stefan Bader (smb)
summary: - The systemd unit for dhcp server should use the default config
+ The systemd unit for DNS server should use the default config
Revision history for this message
Stefan Bader (smb) wrote :

@Lamont, not sure there are already planned changes to Yakkety which could pick this little change up.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.