Blame SOURCES/named-pkcs11.service

7a4f84
[Unit]
7a4f84
Description=Berkeley Internet Name Domain (DNS) with native PKCS#11
7a4f84
Wants=nss-lookup.target
7a4f84
Wants=named-setup-rndc.service
7a4f84
Before=nss-lookup.target
7a4f84
After=network.target
7a4f84
After=named-setup-rndc.service
7a4f84
7a4f84
[Service]
7a4f84
Type=forking
7a4f84
Environment=NAMEDCONF=/etc/named.conf
7a4f84
EnvironmentFile=-/etc/sysconfig/named
7a4f84
Environment=KRB5_KTNAME=/etc/named.keytab
7a4f84
PIDFile=/run/named/named.pid
7a4f84
7a4f84
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'
7a4f84
ExecStart=/usr/sbin/named-pkcs11 -u named -c ${NAMEDCONF} $OPTIONS
7a4f84
7a4f84
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
7a4f84
7a4f84
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
7a4f84
7a4f84
PrivateTmp=true
7a4f84
7a4f84
[Install]
7a4f84
WantedBy=multi-user.target