Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 8f2b6d43ab2bf89a7d4e258ca0373991 > scriptlet

routed-0.17-12.amd64.rpm

PREUN

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

POSTIN

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