You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
859 B
26 lines
859 B
2 years ago
|
[Unit]
|
||
|
Description=Berkeley Internet Name Domain (DNS)
|
||
|
Wants=nss-lookup.target
|
||
|
Wants=named-setup-rndc.service
|
||
|
Before=nss-lookup.target
|
||
|
After=named-setup-rndc.service
|
||
|
After=network.target
|
||
|
|
||
|
[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 -u named -c ${NAMEDCONF} $OPTIONS
|
||
|
ExecReload=/bin/sh -c 'if /usr/sbin/rndc null > /dev/null 2>&1; then /usr/sbin/rndc reload; else /bin/kill -HUP $MAINPID; fi'
|
||
|
|
||
|
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
|
||
|
|
||
|
PrivateTmp=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|