This file is indexed.

/etc/init.d/pads is in pads 1.2-11ubuntu1.

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
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#! /bin/sh

### BEGIN INIT INFO
# Provides:          pads
# Required-Start:    $network $local_fs $remote_fs
# Required-Stop:     $network $local_fs $remote_fs
# Should-Start:      $syslog
# Should-Stop:       $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Passive asset detection system
# Description:       Signature based detection engine used to passively
#                    detect network assets.
### END INIT INFO

set -e

. /lib/lsb/init-functions

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Passive Asset Detection System"
NAME=pads
DAEMON=/usr/bin/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0

# Default options
OPTS="-D -c /etc/pads/pads.conf"

# Read config file if it is present.
if [ -r /etc/default/$NAME ]
then
	. /etc/default/$NAME
fi

running() {
    if [ -f "$PIDFILE" ] && \
       [ "x`pidof -s $NAME`" = "x`cat $PIDFILE 2> /dev/null`" ]
    then
        return 0
    fi
    return 1
}

#
#	Function that starts the daemon/service.
#
d_start() {
	start-stop-daemon --start --quiet --pidfile $PIDFILE \
		--exec $DAEMON -- $OPTS > /dev/null
}

#
#	Function that stops the daemon/service.
#
d_stop() {
	start-stop-daemon --stop --quiet --pidfile $PIDFILE \
		--name $NAME
}

#
#	Function that sends a SIGHUP to the daemon/service.
#
d_reload() {
	start-stop-daemon --stop --quiet --pidfile $PIDFILE \
		--name $NAME --signal 1
}

case "$1" in
  start)
    log_daemon_msg "Starting $DESC" "$NAME"
    if running ; then
        log_progress_msg "(already running)"
        log_end_msg 0
        exit 0
    fi
    if d_start ; then
        log_end_msg $?
    else
        log_end_msg $?
    fi
	;;
  stop)
    log_daemon_msg "Stopping $DESC" "$NAME"
    if ! running; then
        log_progress_msg "not running"
        log_end_msg 0
        exit 0
    fi
    if d_stop ; then
        log_end_msg $?
    else
        log_end_msg $?
        exit 0
    fi
	;;
  status)
    log_daemon_msg "Checking status of $DESC" "$NAME"
    if running ; then
        log_progress_msg "running"
        log_end_msg $?
    else
        log_progress_msg "not running"
        log_end_msg $?
    fi
    ;;
  restart|reload|force-reload)
    $0 stop
    sleep 1
    $0 start
	;;
  *)
	echo "Usage: $SCRIPTNAME {start|stop|status|restart|reload|force-reload}" >&2
	exit 1
	;;
esac

exit 0