Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 916b802a33f8356dda1cdc2d37feb210 > scriptlet

ypserv-2.2-5mdk.i586.rpm

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;