Sophie

Sophie

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

monit-4.8.2-1.amd64.rpm

PREUN

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

POSTIN

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