PREUN
/bin/sh
if [ $1 = 0 ]; then
/sbin/service ypserv stop > /dev/null 2>&1
/sbin/chkconfig --del ypserv
/sbin/service yppasswdd stop > /dev/null 2>&1
/sbin/chkconfig --del yppasswdd
/sbin/service ypxfrd stop > /dev/null 2>&1
/sbin/chkconfig --del ypxfrd
fi
POSTIN
/bin/sh
/sbin/chkconfig --add ypserv
/sbin/chkconfig --add yppasswdd
/sbin/chkconfig --add ypxfrd
POSTUN
/bin/sh
if [ "$1" -ge "1" ]; then
/sbin/service ypserv condrestart > /dev/null 2>&1
/sbin/service yppasswdd condrestart > /dev/null 2>&1
/sbin/service ypxfrd condrestart > /dev/null 2>&1
fi
exit 0