#!/bin/sh PREFIX=${PREFIX:-%%PREFIX%%} case $2 in DEINSTALL) echo -e "\n\n" # Check for running processes echo -n "Checking if heartbeat is running... " if ps -axc | grep -q heartbeat; then echo -n "FOUND. Stopping... " ${PREFIX}/etc/rc.d/heartbeat forcestop echo "STOPPED" else echo "NO" fi esac