This file is indexed.

/usr/share/doc/bosh/examples/boss is in bosh 0.6-6.

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
#!/usr/bin/env bosh

# $Id

command=
function padecho() {                                                                                    \
  s="$1"                                                                                                \
  while [ ${#s} -lt "$2" ]; do s="$s "; done                                                            \
  echo -n "$s"                                                                                          \
}                                                                                                       \
padecho SERVICE 40                                                                                      \
padecho STATUS 20                                                                                       \
echo AVAILABLE COMMANDS                                                                                 \
echo                                                                                                    \
for x in $(ls /etc/init.d)                                                                              \
do                                                                                                      \
  X="/etc/init.d/$x"                                                                                    \
  [ -x $X ] || continue                                                                                 \
  padecho $x 40                                                                                         \
  available=$(cat $X | grep '^  ' | grep ')$' | tr -d '\n)*"' | tr '|' ' ' | cut -f1 -d'#')             \
  if ( echo $available | grep -q status )                                                               \
  then                                                                                                  \
    status="$($X status)"                                                                               \
    if ( echo $status | grep -q 'not running' )                                                         \
    then                                                                                                \
      padecho "not running" 20                                                                          \
    elif ( echo $status | grep -q 'running' )                                                           \
    then                                                                                                \
      padecho "running" 20                                                                              \
    else                                                                                                \
      padecho " " 20                                                                                    \
    fi                                                                                                  \
  else                                                                                                  \
    padecho " " 20                                                                                      \
  fi                                                                                                    \
  echo -n $(echo $available | tr ' ' '\n' | grep 'start\|restart\|stop\|reload\|reset' | sed 's/  / /') \
  echo                                                                                                  \
done


refresh=1
preaction=
  x=/etc/init.d/$(echo $BOSH | cut -f1 -d' ')

s=[!] $x start
r=[!] $x restart
t=[!] $x stop
l=[!] $x reload
f=[!] $x force-reload
e=[!] $x reset
c=[!:command] $x "$BOSHPARAM"