2012-01-30 15:59:01 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Berkeley Internet Name Domain (DNS)
|
|
|
|
Wants=nss-lookup.target
|
2013-12-17 16:08:42 +00:00
|
|
|
Wants=named-setup-rndc.service
|
2014-07-18 11:28:42 +00:00
|
|
|
Wants=network-online.target
|
2012-01-30 15:59:01 +00:00
|
|
|
Before=nss-lookup.target
|
2013-12-17 16:08:42 +00:00
|
|
|
After=named-setup-rndc.service
|
2014-07-18 11:28:42 +00:00
|
|
|
After=network-online.target
|
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=/run/named/named.pid
|
2012-01-30 15:59:01 +00:00
|
|
|
|
|
|
|
ExecStartPre=/usr/sbin/named-checkconf -z /etc/named.conf
|
|
|
|
ExecStart=/usr/sbin/named-sdb -u named $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'
|
|
|
|
|
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|