/etc/init.d/rdnssd is in rdnssd 1.0.1-1ubuntu1.
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 | #! /bin/sh
# $Id: rdnssd.init 254 2011-02-20 09:02:15Z remi $
#
# rdnssd start/stop script for Debian GNU/Linux
# Author: RĂ©mi Denis-Courmont
#
### BEGIN INIT INFO
# Provides: rdnssd
# Required-Start: $local_fs
# Required-Stop: $local_fs
# X-Start-Before: networking
# Short-Description: IPv6 Recursive DNS Server discovery
# Description: RDNSS daemon for autoconfiguration of IPv6 DNS
# resvolers.
# Default-Start: S
# Default-Stop: 0 1 6
### END INIT INFO
PATH=/sbin:/bin
DESC="IPv6 Recursive DNS Server discovery Daemon"
NAME=rdnssd
DAEMON=/sbin/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
OPTIONS="-u rdnssd"
[ -x "$DAEMON" ] || exit 0
# Source defaults.
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
if [ -n "$MERGE_HOOK" ]; then
OPTIONS="$OPTIONS -H $MERGE_HOOK"
fi
. /lib/lsb/init-functions
check_run_dir() {
if [ ! -d "/var/run/$NAME" ]; then
mkdir -p "/var/run/$NAME"
chown rdnssd:nogroup "/var/run/$NAME"
chmod 0755 "/var/run/$NAME"
fi
}
case "$1" in
start)
check_run_dir
log_daemon_msg "Starting $DESC" "$NAME"
start-stop-daemon --start --quiet --pidfile "$PIDFILE" \
--exec "$DAEMON" --oknodo -- $OPTIONS
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
start-stop-daemon --stop --quiet --pidfile "$PIDFILE" \
--retry 1 --oknodo
log_end_msg $?
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit $?
|