Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > f2e9516664620fe36c26ffb2efa26526 > scriptlet

freeipmi-bmc-watchdog-0.5.1-7.el5.x86_64.rpm

PREUN

/bin/sh
#
# Stop bmc-watchdog if it is running 
#
if [ "$1" = 0 ]; then
    if [ -x /etc/rc.d/init.d/freeipmi-bmc-watchdog ]; then
       /etc/rc.d/init.d/freeipmi-bmc-watchdog stop >/dev/null 2>&1
       /sbin/chkconfig --del freeipmi-bmc-watchdog
    fi
fi

POSTIN

/bin/sh
if [ "$1" = 1 ]; then
   if [ -x /etc/rc.d/init.d/freeipmi-bmc-watchdog ]; then
      /sbin/chkconfig --add freeipmi-bmc-watchdog
   fi
fi
if [ "$1" -gt "1" ]; then
   if [ -x /etc/rc.d/init.d/freeipmi-bmc-watchdog ]; then
      /etc/rc.d/init.d/freeipmi-bmc-watchdog condrestart
   fi
fi