This file is indexed.

/usr/share/gridengine/scripts/init_cluster is in gridengine-common 6.2u5-7.4.

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
56
57
58
59
#!/bin/sh
#
# Simple SGE cluster creation script.
# Mainly used from gridengine-master postinst
#
# Copyright (C) 2008 Mark Hymers <mhy@debian.org>
# Licensed under the BSD license as found in /usr/share/common-licenses/BSD
#

set -e

if [ $# -ne 4 ]; then
    echo "Usage: init_cluster <SGE_ROOT> <SGE_CELL> <spooldir> <manageruser>"
    exit 1
fi

export SGE_ROOT=$1
export SGE_CELL=$2
spooldir=$3
manager=$4

baseconf=/usr/share/gridengine/default-configuration
basecomplex=/usr/share/gridengine/centry
baseuserset=/usr/share/gridengine/usersets

if [ -e ${spooldir}/sge ]; then
    echo "${spooldir}/sge already exists: skipping cluster initialization"
    exit 0
fi

echo "Initializing cluster with the following parameters:"
echo " => SGE_ROOT: $SGE_ROOT"
echo " => SGE_CELL: $SGE_CELL"
echo " => Spool directory: $spooldir"
echo " => Initial manager user: $manager"

# Initialise the spool
echo "Initializing spool ($spooldir)"
/usr/lib/gridengine/spoolinit berkeleydb libspoolb ${spooldir} init

# Initialize global configuration
echo "Initializing global configuration based on ${baseconf}"
/usr/lib/gridengine/spooldefaults configuration ${baseconf}

# Initialize complexes:
echo "Initializing complexes based on ${basecomplex}"
/usr/lib/gridengine/spooldefaults complexes ${basecomplex}

# Initialize default usersets:
echo "Initializing usersets based on ${baseuserset}"
/usr/lib/gridengine/spooldefaults usersets ${baseuserset}

# Add $manageruser as a manager
echo "Adding user ${manager} as a manager"
/usr/lib/gridengine/spooldefaults managers ${manager}

echo "Cluster creation complete"

exit 0