PREUN
/bin/sh
if [ "$1" = "0" ] ; then
{
if [ -f /var/lock/subsys/munin-node ]; then
/sbin/service munin-node stop 1>&2 || :;
fi }; /sbin/chkconfig --del munin-node
fi
POSTIN
/bin/sh
if [ "$1" = "1" ] ; then
/sbin/chkconfig --add munin-node
/usr/sbin/munin-node-configure --shell | sh
fi
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/munin-node ] && . /etc/sysconfig/munin-node
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/munin-node ]; then
/sbin/service munin-node restart 1>&2 || :;
else
echo 'Run "/sbin/service munin-node start" to start Munin Node agent.'
fi
fi };