Sophie

Sophie

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

monkey-0.9.1-1.amd64.rpm

PREUN

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

POSTIN

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