This file is indexed.

/etc/init.d/netdiag is in netdiag 1.2-1.

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
#!/bin/sh
#/etc/init.d/netdiag: start statnet daemon.

### BEGIN INIT INFO
# Provides:          netdiag
# Short-Description: Start network data collector
# Description:	     Start statnet daemon, the network data collector for statnet.
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
### END INIT INFO

PATH=/bin:/usr/bin:/sbin:/usr/sbin

test -x /usr/sbin/statnetd || exit 0

# For configuration of the init script use the file
# /etc/default/netdiag, do not edit this init script.

# Set run_statnetd to 1 to start statnetd or 0 to disable it.
run_statnetd=0

# Specify additional statnetd options here (see manpage).
statnetd_options=""

[ -e /etc/default/netdiag ] && . /etc/default/netdiag

NAME=netdiag
DAEMON=/usr/sbin/statnetd

# Get lsb functions
. /lib/lsb/init-functions

case "$1" in
  start)
    if [ $run_statnetd = 1 ]
    then
	echo -n "Starting statnet daemon: "
	if start-stop-daemon --start --quiet \
	    --exec $DAEMON -- -d $statnetd_options
	then
	    echo statnetd.
	else
	    echo
	fi
    fi
    ;;

  stop)
    if [ $run_statnetd = 1 ]
    then
	echo -n "Stopping statnet daemon: "
	if start-stop-daemon --stop --quiet --exec $DAEMON
	then
	    echo statnetd.
	else
	    echo
	fi
    fi
    ;;

  restart|force-reload)
    if [ $run_statnetd = 0 ]; then exit 0; fi
    echo -n "Restarting statnet daemon."
    start-stop-daemon --stop --quiet --exec $DAEMON
    echo -n "."
    sleep 5
    echo -n "."
    if start-stop-daemon --start --quiet \
	--exec $DAEMON -- -d $statnetd_options
    then
	echo statnetd.
    else
	echo
    fi
    ;;

  status)
    status_of_proc "$DAEMON" statnetd
    ;;

  *)
    echo "Usage: /etc/init.d/netdiag {start|stop|restart|force-reload}"
    exit 1

esac

exit 0