Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 6a5978038ab36ae9e3185f66efdcb5bb > scriptlet

nscd-2.5-107.el5_9.6.x86_64.rpm

PREIN

/bin/sh
/usr/sbin/useradd -M -o -r -d / -s /sbin/nologin \
	-c "NSCD Daemon" -u 28 nscd > /dev/null 2>&1 || :

PREUN

/bin/sh
if [ $1 = 0 ] ; then
    service nscd stop > /dev/null 2>&1
    /sbin/chkconfig --del nscd
fi

POSTIN

/bin/sh
/sbin/chkconfig --add nscd

POSTUN

/bin/sh
if [ $1 = 0 ] ; then
    /usr/sbin/userdel nscd > /dev/null 2>&1 || :
fi
if [ "$1" -ge "1" ]; then
    service nscd condrestart > /dev/null 2>&1 || :
fi