Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > b327af3c53e203815e822730efb03544 > scriptlet

ypserv-2.23-4.fc14.i686.rpm

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