PREUN
/bin/sh
if [ $1 -eq 0 ]; then /sbin/service collectd stop &>/dev/null || : /sbin/chkconfig --del collectd fi
POSTIN
/bin/sh
/sbin/chkconfig --add collectd
POSTUN
/bin/sh
/sbin/service collectd condrestart &>/dev/null || :
/bin/sh
if [ $1 -eq 0 ]; then /sbin/service collectd stop &>/dev/null || : /sbin/chkconfig --del collectd fi
/bin/sh
/sbin/chkconfig --add collectd
/bin/sh
/sbin/service collectd condrestart &>/dev/null || :