summaryrefslogtreecommitdiffstats
path: root/debian/bind9.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/bind9.service')
-rw-r--r--debian/bind9.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/bind9.service b/debian/bind9.service
new file mode 100644
index 0000000..3b91a17
--- /dev/null
+++ b/debian/bind9.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=BIND Domain Name Server
+Documentation=man:named(8)
+After=network.target
+Wants=nss-lookup.target
+Before=nss-lookup.target
+
+[Service]
+Type=forking
+EnvironmentFile=-/etc/default/bind9
+ExecStart=/usr/sbin/named $OPTIONS
+ExecReload=/usr/sbin/rndc reload
+ExecStop=/usr/sbin/rndc stop
+
+[Install]
+WantedBy=multi-user.target