Blame SOURCES/named.service

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