PREUN
/bin/sh
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/ypserv ]; then
/etc/rc.d/init.d/ypserv stop >&2
fi
/sbin/chkconfig --del ypserv
if [ -f /var/lock/subsys/yppasswdd ]; then
/etc/rc.d/init.d/yppasswdd stop >&2
fi
/sbin/chkconfig --del yppasswdd
fi
POSTIN
/bin/sh
/sbin/chkconfig --add ypserv
if [ -f /var/lock/subsys/ypserv ]; then
/etc/rc.d/init.d/ypserv restart >&2
else
echo "Run '/etc/rc.d/init.d/ypserv start' to start NIS server." >&2
fi
/sbin/chkconfig --add yppasswdd
if [ -f /var/lock/subsys/yppasswdd ]; then
/etc/rc.d/init.d/yppasswdd restart >&2
else
echo "Run '/etc/rc.d/init.d/yppasswdd start' to start NIS password changing server." >&2
fi
Triggers
ypserv <=
ypserv-1.3.0-2
/bin/sh
/sbin/chkconfig --add ypserv
%trigerpostun -- yppasswd
/sbin/chkconfig --add yppasswdd