Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > 7f0d6fd02f3ccf6bb3719ed4ce9c902b > scriptlet

portfwd-0.22-2.i686.rpm

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