bc5dde
[Unit]
bc5dde
Description=Berkeley Internet Name Domain (DNS)
bc5dde
Wants=nss-lookup.target
fd4b48
Wants=named-setup-rndc.service
bc5dde
Before=nss-lookup.target
bc5dde
After=network.target
fd4b48
After=named-setup-rndc.service
bc5dde
bc5dde
[Service]
bc5dde
Type=forking
bc5dde
EnvironmentFile=-/etc/sysconfig/named
bc5dde
Environment=KRB5_KTNAME=/etc/named.keytab
bc5dde
PIDFile=/run/named/named.pid
bc5dde
d56ed2
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z /etc/named.conf; else echo "Checking of zone files is disabled"; fi'
bc5dde
ExecStart=/usr/sbin/named -u named $OPTIONS
bc5dde
bc5dde
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
bc5dde
bc5dde
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
bc5dde
bc5dde
PrivateTmp=true
bc5dde
bc5dde
[Install]
bc5dde
WantedBy=multi-user.target