Blame named-sdb-chroot.service
|
Adam Tkac |
d218af |
# Don't forget to add "$AddUnixListenSocket /var/named/chroot/dev/log"
|
|
Adam Tkac |
d218af |
# line to your /etc/rsyslog.conf file. Otherwise your logging becomes
|
|
Adam Tkac |
d218af |
# broken when rsyslogd daemon is restarted (due update, for example).
|
|
Adam Tkac |
d218af |
|
|
Adam Tkac |
d218af |
[Unit]
|
|
Adam Tkac |
d218af |
Description=Berkeley Internet Name Domain (DNS)
|
|
Adam Tkac |
d218af |
Wants=nss-lookup.target
|
|
Adam Tkac |
d218af |
Before=nss-lookup.target
|
|
Adam Tkac |
d218af |
After=network.target
|
|
Adam Tkac |
d218af |
|
|
Adam Tkac |
d218af |
[Service]
|
|
Adam Tkac |
d218af |
Type=forking
|
|
Adam Tkac |
d218af |
EnvironmentFile=-/etc/sysconfig/named
|
|
Adam Tkac |
d218af |
Environment=KRB5_KTNAME=/etc/named.keytab
|
|
Adam Tkac |
d218af |
PIDFile=/var/named/chroot/var/run/named/named.pid
|
|
Adam Tkac |
d218af |
|
|
Adam Tkac |
d218af |
ExecStartPre=/usr/libexec/setup-named-chroot.sh /var/named/chroot on
|
|
Adam Tkac |
d218af |
ExecStartPre=/usr/sbin/named-checkconf -t /var/named/chroot -z /etc/named.conf
|
|
Adam Tkac |
d218af |
ExecStart=/usr/sbin/named-sdb -u named -t /var/named/chroot $OPTIONS
|
|
Adam Tkac |
d218af |
|
|
Adam Tkac |
d218af |
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
|
Adam Tkac |
d218af |
|
|
Adam Tkac |
d218af |
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID'
|
|
Adam Tkac |
d218af |
ExecStopPost=/usr/libexec/setup-named-chroot.sh /var/named/chroot off
|
|
Adam Tkac |
d218af |
|
|
Adam Tkac |
d218af |
PrivateTmp=true
|
|
Adam Tkac |
d218af |
TimeoutSec=25
|
|
Adam Tkac |
d218af |
|
|
Adam Tkac |
d218af |
[Install]
|
|
Adam Tkac |
d218af |
WantedBy=multi-user.target
|