Sophie

Sophie

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

rstatd-0.17-22.amd64.rpm

PREUN

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

POSTIN

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