Sophie

Sophie

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

mon-1.1.0-0.pre1.5.amd64.rpm

PREUN

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

POSTIN

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