Sophie

Sophie

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

niceshaper-0.5.1-2.amd64.rpm

PREUN

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

POSTIN

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