aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/dnsmasq/files/dnsmasq.service
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-connectivity/dnsmasq/files/dnsmasq.service')
-rw-r--r--meta-oe/recipes-connectivity/dnsmasq/files/dnsmasq.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/dnsmasq/files/dnsmasq.service b/meta-oe/recipes-connectivity/dnsmasq/files/dnsmasq.service
new file mode 100644
index 0000000000..549e15e2b2
--- /dev/null
+++ b/meta-oe/recipes-connectivity/dnsmasq/files/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
+