Sophie

Sophie

distrib > CentOS > 5 > i386 > by-pkgid > b9a643e3eece2e3e9a72f780f5438c19 > scriptlet

mdadm-2.6.9-5.el5.i386.rpm

PREUN

/bin/sh
if [ "$1" = 0 ]; then
    service mdmonitor stop > /dev/null 2>&1 ||:
    /sbin/chkconfig --del mdmonitor
    if [ -e /etc/rc.d/init.d/mdmpd ]; then
        service mdmpd stop > /dev/null 2>&1 ||:
        /sbin/chkconfig --del mdmpd
    fi
fi

POSTIN

/bin/sh
/sbin/chkconfig --add mdmonitor
/sbin/chkconfig --add mdmpd

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
    service mdmonitor condrestart > /dev/null 2>&1
    if [ -e /etc/rc.d/init.d/mdmpd ]; then
        service mdmpd condrestart > /dev/null 2>&1
    fi
fi