/etc/ha.d/harc is in heartbeat 1:3.0.6-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #!/bin/sh
#
# License: GNU General Public License (GPL)
# Support: linux-ha@lists.linux-ha.org
#
# 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"
|