PREUN
/bin/sh
if [ $1 = 0 ]; then service portmap stop > /dev/null 2>&1 /sbin/chkconfig --del portmap fi
POSTIN
/bin/sh
/sbin/chkconfig --add portmap /usr/sbin/groupadd -g 32 rpc > /dev/null 2>&1 /usr/sbin/useradd -c "Portmapper RPC user" -d / -g 32 -M -s /sbin/nologin -u 32 rpc > /dev/null 2>&1 exit 0
POSTUN
/bin/sh
if [ "$1" -ge "1" ]; then service portmap condrestart > /dev/null 2>&1 fi exit 0
Triggers
portmap <= 4.0-22
/bin/sh
/sbin/chkconfig --add portmap