This file is indexed.

/etc/ha.d/rc.d/hb_takeover is in heartbeat 1:3.0.5-3ubuntu2.

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

# License:      GNU General Public License (GPL)

HA_DIR=/etc/ha.d
. ${HA_DIR}/shellfuncs
ORIGNODE=$HA_src
if
    [ "X$ORIGNODE" = "X$HA_CURHOST" ]
then
      exit 0; # request is from us!
fi
case $HA_rsc_hold in
	all)
		standby_rsc=$HA_rsc_hold;;
	local)
		standby_rsc=foreign;;
	foreign)
		standby_rsc=local;;
esac
/usr/share/heartbeat/hb_standby $standby_rsc