Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 08dcfb97457f55995bddb4b1af5fed34 > scriptlet

mmtcpfwd-0.1.0-4.amd64.rpm

PREUN

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

POSTIN

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