freebsd-ports/sysutils/heartbeat/files/pkg-install.in
Thomas Zander 9bf9be990f - Stagify
- Handle user account creation via Makefile rather than pkg-install
- Handle permissions and ownerships via pkg-plist
- USE_* -> USES
- Add LICENSE
- Bump PORTREVISION

PR:		190972
Submitted by:	ports@encarnate.com (maintainer)
Reviewed by:	maintainer
Approved by:	maintainer, mentors (implicit)
2014-06-16 17:39:39 +00:00

20 lines
316 B
Bash

#!/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