|
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
|
|
Tomas Hozza |
55b0a6 |
Wants=network-online.target
|
|
Adam Tkac |
d218af |
Before=nss-lookup.target
|
|
Tomas Hozza |
7eb562 |
After=named-setup-rndc.service
|
|
Tomas Hozza |
55b0a6 |
After=network-online.target
|
|
Adam Tkac |
d218af |
|
|
Adam Tkac |
d218af |
[Service]
|
|
Adam Tkac |
d218af |
Type=forking
|
|
Adam Tkac |
d218af |
EnvironmentFile=-/etc/sysconfig/named
|
|
Adam Tkac |
d218af |
Environment=KRB5_KTNAME=/etc/named.keytab
|
|
Adam Tkac |
d218af |
PIDFile=/run/named/named.pid
|
|
Adam Tkac |
d218af |
|
|
Tomas Hozza |
566e7e |
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'
|
|
Adam Tkac |
d218af |
ExecStart=/usr/sbin/named -u named $OPTIONS
|
|
Adam Tkac |
d218af |
|
|
Adam Tkac |
d218af |
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
|
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
|