Package: radvd
Version: 1:0.7.2-7
Followup-For: Bug #242471

perhaps something like this will help?

$ cat /etc/default/radvd
#
# please specify a proper file for SAVED_SETTINGS
# if radvd does not run as root
#
OPTIONS="-u nobody -p /var/run/radvd/radvd.pid"
SAVED_SETTINGS="/var/run/radvd/radvd.saved"
            ----
$ cat radvd.diff
--- /tmp/radvd/etc/init.d/radvd 2004-11-29 13:45:29.000000000 +0100
+++ init.d/radvd        2005-01-23 15:43:19.000000000 +0100
@@ -11,6 +11,8 @@
 
 set -e
 
+test -f /etc/default/radvd && . /etc/default/radvd
+
 # Check for IPv6 support in kernel
 if test \! -e /proc/sys/net/ipv6; then
   echo "IPv6 support must be enabled in the kernel for $DESC to work."
@@ -66,37 +68,32 @@
         # We must enable IPv6 forwarding for radvd to work
        echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
 
-       if ! start-stop-daemon --oknodo --start --pidfile /var/run/$NAME.pid \
-               --exec $DAEMON; then
+       if ! start-stop-daemon --oknodo --start --exec $DAEMON -- $OPTIONS; then
          echo "failed." && exit 1
        fi
        echo "$NAME."
        ;;
   stop)
        echo -n "Stopping $DESC: "
-       start-stop-daemon --oknodo --stop --pidfile /var/run/$NAME.pid \
-               --exec $DAEMON
+       start-stop-daemon --oknodo --stop --exec $DAEMON
        restore_settings $SAVED_SETTINGS
        rm -f $SAVED_SETTINGS
        echo "$NAME."
        ;;
   reload|force-reload)
        echo "Reloading $DESC configuration files."
-       start-stop-daemon --stop --signal HUP --quiet --pidfile \
-           /var/run/$NAME.pid --exec $DAEMON
+       start-stop-daemon --stop --signal HUP --quiet --exec $DAEMON -- $OPTIONS
        ;;
   restart)
        chkconfig
        echo -n "Restarting $DESC: "
-       if ! start-stop-daemon --stop --quiet --pidfile \
-               /var/run/$NAME.pid --exec $DAEMON; then
+       if ! start-stop-daemon --stop --quiet --exec $DAEMON; then
          # stop failed, so we were not running
          save_settings $SAVED_SETTINGS
          echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
        fi
        sleep 1
-       start-stop-daemon --start --quiet --pidfile \
-               /var/run/$NAME.pid --exec $DAEMON
+       start-stop-daemon --start --quiet --exec $DAEMON -- $OPTIONS
        echo "$NAME."
        ;;
   *)

            ----
thanks,
Christian.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-rc1-bk3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages radvd depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to