Package bind9.8: Scripts

Post install

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
Pre install

1
2
3
4
5
6
7
/usr/sbin/groupadd -r -f named
/usr/sbin/useradd -r -g named -d /var/lib/bind -s /dev/null -n -c "Domain Name Server" named >/dev/null 2>&1 ||:
[ -f /etc/rc.d/init.d/named -a ! -L /etc/rc.d/init.d/named ] && /sbin/chkconfig --del named ||:

if [ $1 -ge 2 ]; then 
	/usr/sbin/control-dump bind-debug bind-slave 
fi
Pre uninstall

/usr/sbin/preun_service bind