Blame SOURCES/named-chroot.service

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