diff options
author | CoprDistGit <infra@openeuler.org> | 2023-08-20 03:32:50 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-08-20 03:32:50 +0000 |
commit | 2847c413880322cd66177f0edbd1d8c2bb8c2733 (patch) | |
tree | 1450935150f579bab832ca5ef012fed37e173311 /named-chroot-setup.service | |
parent | a0619d67dc05822e0ba3e196a8d7ebc1c4c25bff (diff) |
automatic import of bind
Diffstat (limited to 'named-chroot-setup.service')
-rw-r--r-- | named-chroot-setup.service | 12 |
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 |