a2a915
[Unit]
a2a915
Description=Set-up/destroy chroot environment for named (DNS)
a2a915
BindsTo=named-chroot.service
a2a915
Wants=named-setup-rndc.service
a2a915
After=named-setup-rndc.service
a2a915
a2a915
a2a915
[Service]
a2a915
Type=oneshot
a2a915
RemainAfterExit=yes
a2a915
ExecStart=/usr/libexec/setup-named-chroot.sh /var/named/chroot on /etc/named-chroot.files
a2a915
ExecStop=/usr/libexec/setup-named-chroot.sh /var/named/chroot off /etc/named-chroot.files