This file is indexed.

/etc/init.d/radvd is in radvd 1:2.11-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
90
91
92
93
94
#! /bin/sh

### BEGIN INIT INFO
# Provides:          radvd
# Required-Start:    $syslog $remote_fs $network
# Required-Stop:     $syslog $remote_fs $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Router Advertising Daemon
### END INIT INFO

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/radvd
NAME=radvd
DESC=radvd
CONFIG=/etc/radvd.conf
PIDDIR=/var/run/radvd
PIDFILE=$PIDDIR/radvd.pid
OPTIONS="-u radvd -p $PIDFILE"
PROC_SYS_IP6_FORWARDING=/proc/sys/net/ipv6/conf/all/forwarding

. /lib/lsb/init-functions

test -x $DAEMON || exit 0

set -e

# Check for IPv6 support in kernel
if [ "$(uname -s)" != "GNU/kFreeBSD" ]; then
  if test \! -e /proc/sys/net/ipv6; then
    echo "IPv6 support must be enabled in the kernel for $DESC to work."
    exit
  fi
fi

chkconfig() {
  if [ "$(uname -s)" != "GNU/kFreeBSD" ]; then
    if [ ! -e $CONFIG -o ! -s $CONFIG ]; then
        echo ""
	echo "* $CONFIG does not exist or is empty."
	echo "* See /usr/share/doc/radvd/README.Debian"
	echo "* radvd will *not* be started."
	exit 0
    elif [ ! -e $PROC_SYS_IP6_FORWARDING -o \
	"$(cat $PROC_SYS_IP6_FORWARDING)" = "0" ]; then
        echo ""
	echo "* IPv6 forwarding seems to be disabled."
	echo "* See /usr/share/doc/radvd/README.Debian"
	echo "* radvd will *not* be started."
	exit 0
    fi
  fi
}

case "$1" in
  start)
	echo -n "Starting $DESC: "
	chkconfig

	# Anything under /var/run can go away on reboot
	[ -e $PIDDIR ] || install -d -o radvd -g root -m 4755 $PIDDIR

	if ! start-stop-daemon --oknodo --start --pidfile $PIDFILE \
		--exec $DAEMON -- $OPTIONS; then
	  echo "failed." && exit 1
	fi
	echo "$NAME."
	;;
  stop)
	echo -n "Stopping $DESC: "
	start-stop-daemon --oknodo --stop --pidfile $PIDFILE \
		--exec $DAEMON
	echo "$NAME."
	;;
  reload|force-reload)
	echo "Reloading $DESC configuration files."
	start-stop-daemon --stop --signal HUP --quiet --pidfile \
	    $PIDFILE --exec $DAEMON
	;;
  restart)
	invoke-rc.d $NAME stop
	invoke-rc.d $NAME start
	;;
  status)
        status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
        ;;
  *)
	N=/etc/init.d/$NAME
	echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
	exit 1
	;;
esac

exit 0