mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
dnsmasq: add systemd service scripts for dnsmasq
Signed-off-by: Sander van Grieken <sander@outrightsolutions.nl> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
a5c8e31720
commit
733280b428
@@ -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
|
||||
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user