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