summaryrefslogtreecommitdiff
path: root/named-chroot-setup.service
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 13:39:46 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 13:39:46 +0000
commit24f58da39ddf4f815b50967a7fc14a3f3be52826 (patch)
treed14033338828a8a03b3562472148a3387b50215b /named-chroot-setup.service
parent9820d3163ebcf0cc644d5332a6b1f8eb755f279b (diff)
automatic import of bindopeneuler24.03_LTSopeneuler23.09
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..237a909
--- /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 /etc/named-chroot.files
+ExecStop=/usr/libexec/setup-named-chroot.sh /var/named/chroot off /etc/named-chroot.files