lbalhar / rpms / bind

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