2012-01-30 15:59:01 +00:00
|
|
|
# Don't forget to add "$AddUnixListenSocket /var/named/chroot/dev/log"
|
|
|
|
# line to your /etc/rsyslog.conf file. Otherwise your logging becomes
|
|
|
|
# broken when rsyslogd daemon is restarted (due update, for example).
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Berkeley Internet Name Domain (DNS)
|
|
|
|
Wants=nss-lookup.target
|
2013-12-17 16:08:42 +00:00
|
|
|
Requires=named-chroot-setup.service
|
2012-01-30 15:59:01 +00:00
|
|
|
Before=nss-lookup.target
|
|
|
|
After=network.target
|
2013-12-17 16:08:42 +00:00
|
|
|
After=named-chroot-setup.service
|
2012-01-30 15:59:01 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
EnvironmentFile=-/etc/sysconfig/named
|
|
|
|
Environment=KRB5_KTNAME=/etc/named.keytab
|
2013-03-19 15:03:18 +00:00
|
|
|
PIDFile=/var/named/chroot/run/named/named.pid
|
2012-01-30 15:59:01 +00:00
|
|
|
|
|
|
|
ExecStartPre=/usr/sbin/named-checkconf -t /var/named/chroot -z /etc/named.conf
|
|
|
|
ExecStart=/usr/sbin/named -u named -t /var/named/chroot $OPTIONS
|
|
|
|
|
|
|
|
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
|
|
|
|
|
|
|
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
|
|
|
|
|
2012-08-08 10:59:35 +00:00
|
|
|
PrivateTmp=false
|
2012-01-30 15:59:01 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|