[oe] [meta-networking][PATCH 2/2] dnsmasq: disable the service by default
jackie.huang at windriver.com
jackie.huang at windriver.com
Mon Feb 27 08:09:59 UTC 2017
From: Jackie Huang <jackie.huang at windriver.com>
The service will fail to start/stop when dnsmasq and
bind (provides named) are both installed since they
are using the same port 53:
| dnsmasq: failed to create listening socket for port 53: Address already in use
So disable the service by default, if the user really
want to use two dns servives, the config needs to be
changed to use different interfaces or ports.
As reference, other distro like centos/fedora also
disables the services by default on installation.
Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
---
meta-networking/recipes-support/dnsmasq/dnsmasq.inc | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
index 424a06b..9c2276f 100644
--- a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
+++ b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
@@ -81,3 +81,4 @@ RPROVIDES_${PN} += "${PN}-systemd"
RREPLACES_${PN} += "${PN}-systemd"
RCONFLICTS_${PN} += "${PN}-systemd"
SYSTEMD_SERVICE_${PN} = "dnsmasq.service"
+SYSTEMD_AUTO_ENABLE ?= "disable"
--
2.8.3
More information about the Openembedded-devel
mailing list