2019-08-05 14:40:24 +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
|
|
|
|
After=network.target
|
|
|
|
After=named-setup-rndc.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
Environment=NAMEDCONF=/etc/named.conf
|
|
|
|
EnvironmentFile=-/etc/sysconfig/named
|
|
|
|
Environment=KRB5_KTNAME=/etc/named.keytab
|
|
|
|
PIDFile=/run/named/named.pid
|
|
|
|
|
|
|
|
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'
|
|
|
|
ExecStart=/usr/sbin/named-pkcs11 -u named -c ${NAMEDCONF} $OPTIONS
|
|
|
|
|
2020-01-21 22:30:08 +00:00
|
|
|
ExecReload=/bin/sh -c 'if /usr/sbin/rndc null > /dev/null 2>&1; then /usr/sbin/rndc reload; else /bin/kill -HUP $MAINPID; fi'
|
2019-08-05 14:40:24 +00:00
|
|
|
|
|
|
|
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
|
|
|
|
|
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|