PREUN
/bin/sh
if [ $1 -eq 0 ]; then /sbin/service mysql-mmm-agent stop > /dev/null 2>&1 /sbin/chkconfig --del mysql-mmm-agent fi
POSTIN
/bin/sh
if [ $1 -eq 1 ]; then /sbin/chkconfig --add mysql-mmm-agent /sbin/chkconfig mysql-mmm-agent off elif [ $1 -ge 2 ]; then /sbin/service mysql-mmm-agent condrestart fi