[oe-commits] Sander van Grieken : dnsmasq: add systemd service scripts for dnsmasq

git at git.openembedded.org git at git.openembedded.org
Mon Sep 10 09:03:52 UTC 2012


Module: meta-openembedded.git
Branch: master
Commit: 733280b4286264f478f5df68cbb99492509c8961
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=733280b4286264f478f5df68cbb99492509c8961

Author: Sander van Grieken <sander at outrightsolutions.nl>
Date:   Fri Sep  7 11:01:17 2012 +0000

dnsmasq: add systemd service scripts for dnsmasq

Signed-off-by: Sander van Grieken <sander at outrightsolutions.nl>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 .../dnsmasq/dnsmasq/dnsmasq.service                |   13 +++++++++++++
 .../dnsmasq/dnsmasq_2.55.bbappend                  |   10 ++++++++++
 2 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/meta-systemd/meta-oe/recipes-connectivity/dnsmasq/dnsmasq/dnsmasq.service b/meta-systemd/meta-oe/recipes-connectivity/dnsmasq/dnsmasq/dnsmasq.service
new file mode 100644
index 0000000..549e15e
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-connectivity/dnsmasq/dnsmasq/dnsmasq.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=DNS forwarder and DHCP server
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/dnsmasq.pid
+ExecStart=/usr/bin/dnsmasq -x /run/dnsmasq.pid
+ExecReload=/bin/kill -HUP $(/bin/cat /run/dnsmasq.pid)
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/meta-systemd/meta-oe/recipes-connectivity/dnsmasq/dnsmasq_2.55.bbappend b/meta-systemd/meta-oe/recipes-connectivity/dnsmasq/dnsmasq_2.55.bbappend
new file mode 100644
index 0000000..0a9c77e
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-connectivity/dnsmasq/dnsmasq_2.55.bbappend
@@ -0,0 +1,10 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+PRINC := "${@int(PRINC) + 1}"
+
+inherit systemd
+
+SRC_URI += "file://dnsmasq.service"
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "dnsmasq.service"





More information about the Openembedded-commits mailing list