PREUN
/bin/sh
export LANG=C
if [ $1 -eq 0 ]; then
if ( /usr/sbin/update-alternatives --display dpmcopyd | \
grep currently | grep -q dpm-mysql ) ; then
/sbin/service dpmcopyd stop > /dev/null 2>&1 || :
fi
/usr/sbin/update-alternatives --remove dpmcopyd \
/usr/lib/dpm-mysql/dpmcopyd
/usr/sbin/update-alternatives --display dpmcopyd > /dev/null || \
/sbin/chkconfig --del dpmcopyd > /dev/null 2>&1 || :
fi
POSTIN
/bin/sh
/usr/sbin/update-alternatives --install /usr/sbin/dpmcopyd dpmcopyd \
/usr/lib/dpm-mysql/dpmcopyd 20 \
--slave /usr/share/man/man8/dpmcopyd.8.gz dpmcopyd.8.gz \
/usr/lib/dpm-mysql/dpmcopyd.8.gz \
--slave /etc/rc.d/init.d/dpmcopyd dpmcopyd.init \
/etc/dpm-mysql/dpmcopyd.init \
--slave /etc/sysconfig/dpmcopyd dpmcopyd.conf \
/etc/dpm-mysql/dpmcopyd.conf \
--slave /etc/logrotate.d/dpmcopyd dpmcopyd.logrotate \
/etc/dpm-mysql/dpmcopyd.logrotate
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add dpmcopyd
fi
POSTUN
/bin/sh
export LANG=C
if [ $1 -ge 1 ]; then
if ( /usr/sbin/update-alternatives --display dpmcopyd | \
grep currently | grep -q dpm-mysql ) ; then
/sbin/service dpmcopyd condrestart > /dev/null 2>&1 || :
fi
fi