Blame SOURCES/named-chroot.service

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