summaryrefslogtreecommitdiffstats
path: root/named-sdb-chroot-setup.service
diff options
context:
space:
mode:
Diffstat (limited to 'named-sdb-chroot-setup.service')
-rw-r--r--named-sdb-chroot-setup.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/named-sdb-chroot-setup.service b/named-sdb-chroot-setup.service
new file mode 100644
index 0000000..0967a60
--- /dev/null
+++ b/named-sdb-chroot-setup.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Set-up/destroy chroot environment for named-sdb
+BindsTo=named-sdb-chroot.service
+Wants=named-setup-rndc.service
+After=named-setup-rndc.service
+
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/libexec/setup-named-chroot.sh /var/named/chroot_sdb on
+ExecStop=/usr/libexec/setup-named-chroot.sh /var/named/chroot_sdb off