Package: radvd
Version: 1:1.0-2jim
Severity: normal
Tags: patch

The command

  /etc/init.d/radvd restart

fails to start radvd if it isn't already running, because the "set -e"
means that it exits immediately if "start-stop-daemon --stop" returns
an error code.  Also, it doesn't re-enable ipv6 forwarding in case it
got turned off, so it's not really a full restart anyway.

Attached is a patch which just changes it to call stop, then start.

-jim

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23.1 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages radvd depends on:
ii  adduser                       3.105      add and remove users and groups
ii  libc6                         2.7-5      GNU C Library: Shared libraries

radvd recommends no packages.

-- no debconf information
--- radvd-1.0-orig/debian/radvd.init    2008-01-21 01:27:01.000000000 -0500
+++ radvd-1.0/debian/radvd.init 2008-01-21 02:35:00.000000000 -0500
@@ -67,14 +67,8 @@ case "$1" in
            $PIDFILE --exec $DAEMON
        ;;
   restart)
-       chkconfig
-       echo -n "Restarting $DESC: "
-       start-stop-daemon --stop --quiet --pidfile \
-               $PIDFILE --exec $DAEMON
-       sleep 1
-       start-stop-daemon --start --quiet --pidfile \
-               $PIDFILE --exec $DAEMON -- $OPTIONS
-       echo "$NAME."
+       /etc/init.d/$NAME stop
+       /etc/init.d/$NAME start
        ;;
   *)
        N=/etc/init.d/$NAME

Reply via email to