2014-08-21 14:37:44 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Berkeley Internet Name Domain (DNS) with native PKCS#11
|
|
|
|
Wants=nss-lookup.target
|
|
|
|
Wants=named-setup-rndc.service
|
|
|
|
Before=nss-lookup.target
|
2016-05-12 11:31:49 +00:00
|
|
|
After=network.target
|
2014-08-21 14:37:44 +00:00
|
|
|
After=named-setup-rndc.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
EnvironmentFile=-/etc/sysconfig/named
|
|
|
|
Environment=KRB5_KTNAME=/etc/named.keytab
|
|
|
|
PIDFile=/run/named/named.pid
|
|
|
|
|
2015-06-29 10:13:59 +00:00
|
|
|
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'
|
2014-08-21 14:37:44 +00:00
|
|
|
ExecStart=/usr/sbin/named-pkcs11 -u named $OPTIONS
|
|
|
|
|
|
|
|
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
|
|
|
|
|
|
|
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
|
|
|
|
|
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|