Adam Tkac d218af
[Unit]
Adam Tkac d218af
Description=Berkeley Internet Name Domain (DNS)
Adam Tkac d218af
Wants=nss-lookup.target
Tomas Hozza 7eb562
Wants=named-setup-rndc.service
Adam Tkac d218af
Before=nss-lookup.target
Tomas Hozza 7eb562
After=named-setup-rndc.service
Tomas Hozza d59131
After=network.target
Adam Tkac d218af
Adam Tkac d218af
[Service]
Adam Tkac d218af
Type=forking
6bf59b
Environment=NAMEDCONF=/etc/named.conf
Adam Tkac d218af
EnvironmentFile=-/etc/sysconfig/named
Adam Tkac d218af
Environment=KRB5_KTNAME=/etc/named.keytab
Adam Tkac 2043f0
PIDFile=/run/named/named.pid
Adam Tkac d218af
6bf59b
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'
6bf59b
ExecStart=/usr/sbin/named-sdb -u named -c ${NAMEDCONF} $OPTIONS
Adam Tkac d218af
23eefd
; until https://github.com/systemd/systemd/pull/13098 is present, ignore return value
23eefd
ExecReload=-/bin/sh -c 'if /usr/sbin/rndc null > /dev/null 2>&1; then /usr/sbin/rndc reload; else /bin/kill -HUP $MAINPID; fi'
Adam Tkac d218af
Adam Tkac d218af
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
Adam Tkac d218af
Adam Tkac d218af
PrivateTmp=true
Adam Tkac d218af
Adam Tkac d218af
[Install]
Adam Tkac d218af
WantedBy=multi-user.target