Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > media > contrib > by-pkgid > ea4f0e137a54ee122189d93568404b89 > files > 8

heartbeat-1.2.3-2mdk.i586.rpm

#!/bin/sh
#
#
#	This script is patterned after the Red Hat SysV init script system
#
#	It doesn't know how to do anything except to run other scripts...
#
#	Basically, it notifies the world of something that was sent around
#	via the heartbeat cluster network...
#

. $HA_FUNCS
RCDIR=$HA_DIR/rc.d

if [ -n "$HA_DEBUGLOG" ]; then
	exec >>$HA_DEBUGLOG 2>&1
fi

if
  [ ! -d $RCDIR ]
then
  ha_log "ERROR: $0: $RCDIR does not exist"
  exit 1
else
  if
    [ ! -x $RCDIR/$1 ]
  then
    ha_log "ERROR: $0: $RCDIR/$1: not executable"
    exit 1
  fi
fi

ha_log "info: Running $RCDIR/$1 $*"
exec $RCDIR/$1 "$@"
ha_log "ERROR: $0: $RCDIR/$1: cannot execute"