PREUN
/bin/sh
if [ $1 = 0 ]; then service ypserv stop > /dev/null 2>/dev/null || :; /sbin/chkconfig --del ypserv; fi;
if [ $1 = 0 ]; then service yppasswdd stop > /dev/null 2>/dev/null || :; /sbin/chkconfig --del yppasswdd; fi;
if [ $1 = 0 ]; then service ypxfrd stop > /dev/null 2>/dev/null || :; /sbin/chkconfig --del ypxfrd; fi;
POSTIN
/bin/sh
if [ $1 = 1 ]; then /sbin/chkconfig --add ypserv; else if [ -f /var/lock/subsys/ypserv ]; then service ypserv restart > /dev/null 2>/dev/null || : ; fi; fi;
if [ $1 = 1 ]; then /sbin/chkconfig --add yppasswdd; else if [ -f /var/lock/subsys/yppasswdd ]; then service yppasswdd restart > /dev/null 2>/dev/null || : ; fi; fi;
if [ $1 = 1 ]; then /sbin/chkconfig --add ypxfrd; else if [ -f /var/lock/subsys/ypxfrd ]; then service ypxfrd restart > /dev/null 2>/dev/null || : ; fi; fi;