Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > d579d8b04390a9e421f4e02fd9670f4c > scriptlet

portfwd-0.26-2.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	{
if [ -f /var/lock/subsys/portfwd ]; then
/sbin/service portfwd stop 1>&2 || :;
fi };	/sbin/chkconfig --del portfwd
fi

POSTIN

/bin/sh
/sbin/chkconfig --add portfwd
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/portfwd ] && . /etc/sysconfig/portfwd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/portfwd ]; then
/sbin/service portfwd restart 1>&2 || :;
else
echo 'Run "/sbin/service portfwd start" to start portfwd service.'
fi
fi };