[oe-commits] [meta-openembedded] 17/58: dnsmasq: read the conf files found in dnsmasq.d

git at git.openembedded.org git at git.openembedded.org
Tue Nov 29 09:13:08 UTC 2016


martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit de494a75c3060d8e453d0b5a7311aa86fbf43f94
Author: Mark Asselstine <mark.asselstine at windriver.com>
AuthorDate: Mon Nov 21 13:42:34 2016 -0500

    dnsmasq: read the conf files found in dnsmasq.d
    
    The dnsmasq package installs a ${sysconfigdir}/dnsmasq.d directory but
    doesn't currently use any configuration files that might be placed
    there. This goes against what the user would expect and doesn't match
    what you see in other distros.
    
    We could ensure this config directory is read when dnsmasq is started,
    as we are doing here, or by including it in the main dnsmasq.conf
    file. By doing it here we can have better reuseability of the main
    dnsmasq.conf file by other instances of dnsmasq.
    
    There are currently no files added to the dnsmasq.d directory for core
    oe images, so this should not result in any runtime behavior changes.
    
    Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 .../recipes-support/dnsmasq/files/dnsmasq-noresolvconf.service          | 2 +-
 .../recipes-support/dnsmasq/files/dnsmasq-resolvconf.service            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-networking/recipes-support/dnsmasq/files/dnsmasq-noresolvconf.service b/meta-networking/recipes-support/dnsmasq/files/dnsmasq-noresolvconf.service
index cde2244..32f8e59 100644
--- a/meta-networking/recipes-support/dnsmasq/files/dnsmasq-noresolvconf.service
+++ b/meta-networking/recipes-support/dnsmasq/files/dnsmasq-noresolvconf.service
@@ -6,7 +6,7 @@ After=network.target
 Type=forking
 PIDFile=/run/dnsmasq.pid
 ExecStartPre=/usr/bin/dnsmasq --test
-ExecStart=/usr/bin/dnsmasq -x /run/dnsmasq.pid
+ExecStart=/usr/bin/dnsmasq -x /run/dnsmasq.pid -7 /etc/dnsmasq.d
 ExecStop=/bin/kill $MAINPID
 ExecReload=/bin/kill -HUP $MAINPID
 
diff --git a/meta-networking/recipes-support/dnsmasq/files/dnsmasq-resolvconf.service b/meta-networking/recipes-support/dnsmasq/files/dnsmasq-resolvconf.service
index 68b175c..07b4817 100644
--- a/meta-networking/recipes-support/dnsmasq/files/dnsmasq-resolvconf.service
+++ b/meta-networking/recipes-support/dnsmasq/files/dnsmasq-resolvconf.service
@@ -6,7 +6,7 @@ After=network.target
 Type=forking
 PIDFile=/run/dnsmasq.pid
 ExecStartPre=/usr/bin/dnsmasq --test
-ExecStart=/usr/bin/dnsmasq -x /run/dnsmasq.pid
+ExecStart=/usr/bin/dnsmasq -x /run/dnsmasq.pid -7 /etc/dnsmasq.d
 ExecStartPost=/usr/bin/dnsmasq-resolvconf-helper start
 ExecStopPre=/usr/bin/dnsmasq-resolvconf-helper stop
 ExecStop=/bin/kill $MAINPID

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list