Blame SOURCES/named.service

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