diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2013-08-22 14:05:05 -0600 |
---|---|---|
committer | LaMont Jones <lamont@debian.org> | 2013-08-22 14:05:05 -0600 |
commit | 34ed5b80e621cf32ebee9526dab1eaceed5c1f9a (patch) | |
tree | 4b0cfe87aa6bf0da3a99f451230f84efc750ab4f | |
parent | 8b361ed7cdfe73e5044e00d3f92fcd9978d9984c (diff) | |
download | bind9-34ed5b80e621cf32ebee9526dab1eaceed5c1f9a.tar.gz |
add systemd service file
Addresses-Debian-Bug: 718212
-rw-r--r-- | bind9-resolvconf.service | 13 | ||||
-rw-r--r-- | bind9.service | 12 | ||||
-rw-r--r-- | bind9.tmpfile | 1 | ||||
-rw-r--r-- | debian/bind9-resolvconf.service | 13 | ||||
-rw-r--r-- | debian/bind9.service | 12 | ||||
-rw-r--r-- | debian/bind9.tmpfile | 1 | ||||
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | debian/lwresd.service | 10 | ||||
-rw-r--r-- | debian/lwresd.tmpfile | 1 | ||||
-rw-r--r-- | debian/rules | 5 |
10 files changed, 69 insertions, 1 deletions
diff --git a/bind9-resolvconf.service b/bind9-resolvconf.service new file mode 100644 index 00000000..3426c1ff --- /dev/null +++ b/bind9-resolvconf.service @@ -0,0 +1,13 @@ +[Unit] +Description=local BIND via resolvconf +Documentation=man:named(8) man:resolvconf(8) +Requires=bind9.service +After=bind9.service +ConditionFileIsExecutable=/sbin/resolvconf + +[Service] +ExecStart=/bin/sh -c 'echo nameserver 127.0.0.1 | /sbin/resolvconf -a lo.named' +ExecStop=/sbin/resolvconf -d lo.named + +[Install] +WantedBy=bind9.service diff --git a/bind9.service b/bind9.service new file mode 100644 index 00000000..5cbafa14 --- /dev/null +++ b/bind9.service @@ -0,0 +1,12 @@ +[Unit] +Description=BIND Domain Name Server +Documentation=man:named(8) +After=network.target + +[Service] +ExecStart=/usr/sbin/named -f -u bind +ExecReload=/usr/sbin/rndc reload +ExecStop=/usr/sbin/rndc stop + +[Install] +WantedBy=multi-user.target diff --git a/bind9.tmpfile b/bind9.tmpfile new file mode 100644 index 00000000..36fc91d6 --- /dev/null +++ b/bind9.tmpfile @@ -0,0 +1 @@ +d /run/named 0775 root bind - - diff --git a/debian/bind9-resolvconf.service b/debian/bind9-resolvconf.service new file mode 100644 index 00000000..3426c1ff --- /dev/null +++ b/debian/bind9-resolvconf.service @@ -0,0 +1,13 @@ +[Unit] +Description=local BIND via resolvconf +Documentation=man:named(8) man:resolvconf(8) +Requires=bind9.service +After=bind9.service +ConditionFileIsExecutable=/sbin/resolvconf + +[Service] +ExecStart=/bin/sh -c 'echo nameserver 127.0.0.1 | /sbin/resolvconf -a lo.named' +ExecStop=/sbin/resolvconf -d lo.named + +[Install] +WantedBy=bind9.service diff --git a/debian/bind9.service b/debian/bind9.service new file mode 100644 index 00000000..5cbafa14 --- /dev/null +++ b/debian/bind9.service @@ -0,0 +1,12 @@ +[Unit] +Description=BIND Domain Name Server +Documentation=man:named(8) +After=network.target + +[Service] +ExecStart=/usr/sbin/named -f -u bind +ExecReload=/usr/sbin/rndc reload +ExecStop=/usr/sbin/rndc stop + +[Install] +WantedBy=multi-user.target diff --git a/debian/bind9.tmpfile b/debian/bind9.tmpfile new file mode 100644 index 00000000..36fc91d6 --- /dev/null +++ b/debian/bind9.tmpfile @@ -0,0 +1 @@ +d /run/named 0775 root bind - - diff --git a/debian/control b/debian/control index 284b10ea..8dcaef0f 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: net Priority: optional Maintainer: LaMont Jones <lamont@debian.org> Uploaders: Bdale Garbee <bdale@gag.com> -Build-Depends: libkrb5-dev, debhelper (>= 5), libssl-dev, libtool, bison, libdb-dev (>>4.6), libldap2-dev, libxml2-dev, libcap2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], hardening-wrapper, libgeoip-dev (>= 1.4.6.dfsg-5), dpkg-dev (>= 1.15.5), python, python-argparse +Build-Depends: libkrb5-dev, debhelper (>= 5), libssl-dev, libtool, bison, libdb-dev (>>4.6), libldap2-dev, libxml2-dev, libcap2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], hardening-wrapper, libgeoip-dev (>= 1.4.6.dfsg-5), dpkg-dev (>= 1.15.5), python, python-argparse, dh-systemd Build-Conflicts: libdb4.2-dev Standards-Version: 3.7.3.0 XS-Vcs-Browser: http://git.debian.org/?p=users/lamont/bind9.git diff --git a/debian/lwresd.service b/debian/lwresd.service new file mode 100644 index 00000000..64a34a50 --- /dev/null +++ b/debian/lwresd.service @@ -0,0 +1,10 @@ +[Unit] +Description=Lightweight Resolver Daemon +Documentation=man:lwresd(8) +After=network.target + +[Service] +ExecStart=/usr/sbin/lwresd -f + +[Install] +WantedBy=multi-user.target diff --git a/debian/lwresd.tmpfile b/debian/lwresd.tmpfile new file mode 100644 index 00000000..ffdd79e8 --- /dev/null +++ b/debian/lwresd.tmpfile @@ -0,0 +1 @@ +d /run/lwresd 0775 root bind - - diff --git a/debian/rules b/debian/rules index 4d963ba6..564f5b73 100644 --- a/debian/rules +++ b/debian/rules @@ -147,7 +147,12 @@ binary-arch: build install dh_installdocs -a dh_installexamples -a dh_installmenu -a + dh_systemd_enable -pbind9 --no-enable bind9-resolvconf.service + dh_systemd_enable -pbind9 bind9.service + dh_systemd_enable -plwresd lwresd.service dh_installinit -a --no-start -- defaults 15 85 + # Ship the extra service file for resolvconf integration manually. + cp debian/bind9-resolvconf.service debian/bind9/lib/systemd/system dh_installcron -a dh_installdebconf -pbind9 dh_installinfo -a |