3
PATH=/sbin:/bin:/usr/sbin:/usr/bin
9
test -x $DAEMON || exit 0
13
# We must enable IPv6 forwarding for radvd to work
14
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
17
if [ ! -e $CONFIG ]; then
18
echo "$CONFIG does NOT exist." && exit 1
19
elif [ ! -s $CONFIG ]; then
20
echo "$CONFIG is empty." && exit 1
26
echo -n "Starting $DESC: "
28
if ! start-stop-daemon --oknodo --start --pidfile /var/run/$NAME.pid \
30
echo "failed." && exit 1
35
echo -n "Stopping $DESC: "
36
start-stop-daemon --oknodo --stop --pidfile /var/run/$NAME.pid \
41
echo "Reloading $DESC configuration files."
42
start-stop-daemon --stop --signal HUP --quiet --pidfile \
43
/var/run/$NAME.pid --exec $DAEMON
47
echo -n "Restarting $DESC: "
48
start-stop-daemon --stop --quiet --pidfile \
49
/var/run/$NAME.pid --exec $DAEMON
51
start-stop-daemon --start --quiet --pidfile \
52
/var/run/$NAME.pid --exec $DAEMON
57
echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2