900526
# Don't forget to add "$AddUnixListenSocket /var/named/chroot_sdb/dev/log"
900526
# line to your /etc/rsyslog.conf file. Otherwise your logging becomes
900526
# broken when rsyslogd daemon is restarted (due update, for example).
900526
900526
[Unit]
900526
Description=Berkeley Internet Name Domain (DNS)
900526
Wants=nss-lookup.target
900526
Requires=named-sdb-chroot-setup.service
900526
Before=nss-lookup.target
900526
After=network.target
900526
After=named-sdb-chroot-setup.service
900526
900526
[Service]
900526
Type=forking
900526
Environment=NAMEDCONF=/etc/named.conf
900526
EnvironmentFile=-/etc/sysconfig/named
900526
Environment=KRB5_KTNAME=/etc/named.keytab
900526
PIDFile=/var/named/chroot_sdb/run/named/named.pid
900526
900526
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -t /var/named/chroot_sdb -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi'
900526
ExecStart=/usr/sbin/named-sdb -u named -c ${NAMEDCONF} -t /var/named/chroot_sdb $OPTIONS
900526
900526
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
900526
900526
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
900526
900526
PrivateTmp=false
900526
900526
[Install]
900526
WantedBy=multi-user.target