PREUN
/bin/sh
if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/portfwd ]; then /etc/rc.d/init.d/portfwd stop 1>&2 fi /sbin/chkconfig --del portfwd fi
POSTIN
/bin/sh
/sbin/chkconfig --add portfwd if [ -f /var/lock/subsys/portfwd ]; then /etc/rc.d/init.d/portfwd restart 1>&2 else echo "Run \"/etc/rc.d/init.d/portfwd start\" to start portfwd." fi