summaryrefslogtreecommitdiffstats
path: root/named-chroot-setup.service
diff options
context:
space:
mode:
authorTomas Hozza <thozza@redhat.com>2013-12-17 17:08:42 +0100
committerTomas Hozza <thozza@redhat.com>2013-12-17 17:09:44 +0100
commit7eb562bbab26218331bc2cc99a405e6730992dbb (patch)
treed8a8268bdfd85ca437ed1a40d31ebda185a30d01 /named-chroot-setup.service
parent0cd5a0ff483e4b7bd8b233961d34708334c0db51 (diff)
downloadbind-7eb562bbab26218331bc2cc99a405e6730992dbb.tar.gz
bind-7eb562bbab26218331bc2cc99a405e6730992dbb.tar.xz
bind-7eb562bbab26218331bc2cc99a405e6730992dbb.zip
Rework the chroot setup/destruction workflow
- Split chroot package for named and named-sdb - Extract setting-up/destroying of chroot to a separate systemd service (#997030) Signed-off-by: Tomas Hozza <thozza@redhat.com>
Diffstat (limited to 'named-chroot-setup.service')
-rw-r--r--named-chroot-setup.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/named-chroot-setup.service b/named-chroot-setup.service
new file mode 100644
index 0000000..9870a88
--- /dev/null
+++ b/named-chroot-setup.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Set-up/destroy chroot environment for named (DNS)
+BindsTo=named-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 on
+ExecStop=/usr/libexec/setup-named-chroot.sh /var/named/chroot off