This file is indexed.

/usr/sbin/cman_notify is in cman 3.1.7-0ubuntu2.

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

# concept from Debian run-parts and similar from fedora crontabs

# keep going when something fails
set +e

if [ ! -d "/etc/cluster/cman-notify.d" ]; then
	exit 0
fi

LOGFILE="/var/log/cluster/cman_notify.log"

if [ "$CMAN_NOTIFICATION_DEBUG" = "1" ]; then
	OUT="$LOGFILE"
fi

# Ignore *~ and *, scripts
for i in $(LC_ALL=C; echo /etc/cluster/cman-notify.d/*[^~,]); do
	[ -d $i ] && continue
	# skip know scripts
	[ "${i%.cfsaved}" != "${i}" ] && continue
	[ "${i%.rpmsave}" != "${i}" ] && continue
        [ "${i%.rpmorig}" != "${i}" ] && continue
        [ "${i%.rpmnew}" != "${i}" ] && continue
        [ "${i%.swp}" != "${i}" ] && continue
	[ "${i%,v}" != "${i}" ] && continue
	[ "${i%.dpkg-old}" != "${i}" ] && continue
	[ "${i%.dpkg-dist}" != "${i}" ] && continue
	[ "${i%.dpkg-new}" != "${i}" ] && continue

	if [ -x $i ]; then
		echo "starting $(basename $i)" >> $LOGFILE
		[ -n "$OUT" ] && $i >> $OUT
		[ -z "$OUT" ] && $i > /dev/null 2>&1
		echo "finished $(basename $i)" >> $LOGFILE
	fi
done

exit 0