Building an HP SIM 5.x server on a Linux-based Serviceguard Cluster (444847-001, February 2007)

# Check that networking is up.
# Pretty much need it for postmaster.
[ "${NETWORKING}" = "no" ] && exit 0
start(){
PSQL_START=$"Starting ${NAME} service: "
/etc/init.d/postgresql start
stat=$?
if [ $stat -eq 0 ]; then
/etc/init.d/hpsim start
if [ $? -eq 0 ]; then
success "$NAME"
touch /var/lock/subsys/${NAME}
echo
else
failure "$NAME (hpsim)"
echo
exit -1
fi
else
failure "$NAME (postgresql)"
echo
exit -1
fi
}
stop(){
echo -n $"Stopping ${NAME} service: "
/etc/init.d/hpsim stop
ret=$?
res=0
if [ $ret -eq 0 ]; then
echo_success
else
echo_failure
res=1
16