summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bind/bind-9.16.18/named.service
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-06-22 13:21:14 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-26 11:22:52 +0100
commitb3c94e9a50a64f56296500063c0c2baea6de4d16 (patch)
tree6cc99738734960c62aa1844fc4a3c4881749911a /meta/recipes-connectivity/bind/bind-9.16.18/named.service
parent83bf8a89c04e155db236cf72b138943980ebdaca (diff)
downloadopenembedded-core-b3c94e9a50a64f56296500063c0c2baea6de4d16.tar.gz
bind: upgrade 9.16.16 -> 9.16.18
(From OE-Core rev: e3e4f7b9c95b7c89ab1542483f1782ae884d4ebb) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'meta/recipes-connectivity/bind/bind-9.16.18/named.service')
-rw-r--r--meta/recipes-connectivity/bind/bind-9.16.18/named.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bind/bind-9.16.18/named.service b/meta/recipes-connectivity/bind/bind-9.16.18/named.service
new file mode 100644
index 0000000000..cda56ef015
--- /dev/null
+++ b/meta/recipes-connectivity/bind/bind-9.16.18/named.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=Berkeley Internet Name Domain (DNS)
+Wants=nss-lookup.target
+Before=nss-lookup.target
+After=network.target
+
+[Service]
+Type=forking
+EnvironmentFile=-/etc/default/bind9
+PIDFile=/run/named/named.pid
+
+ExecStartPre=@SBINDIR@/generate-rndc-key.sh
+ExecStart=@SBINDIR@/named $OPTIONS
+
+ExecReload=@BASE_BINDIR@/sh -c '@SBINDIR@/rndc reload > /dev/null 2>&1 || @BASE_BINDIR@/kill -HUP $MAINPID'
+
+ExecStop=@BASE_BINDIR@/sh -c '@SBINDIR@/rndc stop > /dev/null 2>&1 || @BASE_BINDIR@/kill -TERM $MAINPID'
+
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target