Blame SOURCES/named-chroot.service

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