Sophie

Sophie

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

mrtg-init-2.13.2-2.amd64.rpm

PREUN

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

POSTIN

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