This file is indexed.

/etc/xcp/master.d/01-example is in xcp-xapi 1.3.2-5.

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

# Example on-master-start script

# Source function library.
. /etc/init.d/functions

start() {
	echo -n $"Assuming role of master: "
	touch /tmp/master
	echo -n $"OK"
	success $"OK"
	echo
	return 0
}

stop() {
	echo -n $"Dropping role of master: "
	rm -f /tmp/master
	echo
	return 0
}

restart() {
	stop
	start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac