Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501486 - net-dns/bind-9.9.4_p2 - named.service should get variable from /etc/systemd/system/named.service.d/00gentoo.conf
Summary: net-dns/bind-9.9.4_p2 - named.service should get variable from /etc/systemd/s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Ruppert (idl0r)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-16 14:15 UTC by Arnaud Desgranges
Modified: 2014-02-16 15:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud Desgranges 2014-02-16 14:15:11 UTC
bind unit file(systemd) source /etc/conf.d/named
according to https://wiki.gentoo.org/wiki/Systemd/Ebuild_policy#Unit_file_guidelines
it says : Use of configurable variables in unit files and conf.d files is strongly discouraged. Instead, the unit file should use defaults, and a boilerplate /etc/systemd/system/foo.service.d/gentoo.conf with commented out additional options may be installed.

The named.service contains : 
EnvironmentFile=/etc/conf.d/named

named.service uses /etc/conf.d/named $variable at:
ExecStart=/usr/sbin/named -u named $OPTIONS

it should use /etc/systemd/system/named.service.d/00gentoo.conf instead

Reproducible: Always

Actual Results:  
named.service get variable from /etc/conf.d/named
it is not expected behaviour as said in the wiki

Expected Results:  
named.service should use /etc/systemd/system/named.service.d/00gentoo.conf instead.
Comment 1 Pacho Ramos gentoo-dev 2014-02-16 15:52:26 UTC
+*bind-9.9.5-r3 (16 Feb 2014)
+
+  16 Feb 2014; Pacho Ramos <pacho@gentoo.org> +bind-9.9.5-r3.ebuild,
+  +files/named.service-r1:
+  Update unit file following the policy (#501486)
+