Blame SOURCES/named-sdb-chroot.service

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