This file is indexed.

/etc/ha.d/resource.d/WinPopup 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
#
# Resource script for sending WinPopups using smbclient
# derived from Alan Robertson's MailTo script
#
# Author: Sandro Poppi <spoppi@gmx.de>
#
# License:      GNU General Public License (GPL)
# Support:      linux-ha@lists.linux-ha.org
#
# Description: sends WinPopups to a sysadmin's workstation
#	       whenever a takeover occurs.
#
#	Note: This command requires an argument, unlike normal init scripts.
#
#	This can be given in the haresources file as:
#
#		WinPopup::hosts
#
#	where "hosts" is a file containing the IPs/Workstation names
#	one by line to be sent WinPopups
#

# Source function library.
. /etc/ha.d/resource.d//hto-mapfuncs

usage() {
  echo "Usage: $0 [workstationfile] $LEGAL_ACTIONS"
  exit 1
}

# max. 2 parameters allowed
if [ $# -gt 2 ] ; then
  echo "Additional parameters found: $# but only 2 are allowed!"
  usage
fi

# See how we were called.
if [ $# -eq 2 ] ; then
  # optional parameter found
  cmd=$2
  hostfile=$1
else
  cmd=$1
  hostfile="hosts"
fi

OCF_RESKEY_hostfile=$hostfile
export OCF_RESKEY_hostfile

OCF_TYPE=WinPopup
OCF_RESOURCE_INSTANCE=${OCF_TYPE}
export OCF_TYPE OCF_RESOURCE_INSTANCE

ra_execocf  $cmd