SYSLOGD_SCRIPT=/etc/init.d/syslogd
SYSLOGD_CONFIG=/etc/sysconfig/syslogd
if grep -qs '^SYSLOGD_OPTIONS=.*-a /var/lib/bind/dev/log' "$SYSLOGD_CONFIG"; then
# Remove artefacts of pre-syslog.d epoch.
sed -i 's|^\(SYSLOGD_OPTIONS=.*\) \?-a /var/lib/bind/dev/log|\1|' "$SYSLOGD_CONFIG"
if [ -x "$SYSLOGD_SCRIPT" ]; then
"$SYSLOGD_SCRIPT" condreload ||:
fi
fi
if [ $1 -ge 2 ]; then
/usr/sbin/control-restore bind-debug bind-slave
else
for facility in bind-debug bind-slave; do
/usr/sbin/control "$facility" disabled
done
fi
/usr/sbin/post_service bind