Package: dibbler
Severity: normal
Tags: patch

Hallo

stop returned an error, if the program hasn't been running.
restart didn't even work.
This patch fixes these bugs, it also does some minor
improvements.

With kind regards

Adrian Friedli



--- dibbler-0.4.2.dfsg/debian/dibbler-client.init       2006-03-19 
16:42:28.000000000 +0100
+++ dibbler-0.4.2.dfsg/debian/dibbler-client.init       2006-03-19 
16:34:05.000000000 +0100
@@ -25,16 +25,16 @@
 case "$1" in
   start)
        echo -n "Starting $DESC: "
-       $DAEMON start > /dev/null
+       $DAEMON start 2>&1 > /dev/null
        echo "$NAME."
        ;;
   stop)
        echo -n "Stopping $DESC: "
-       $DAEMON stop > /dev/null
+       ($DAEMON stop 2>&1 > /dev/null; true)
        echo "$NAME."
        ;;
   status)
-       echo -n "Status $DESC: $NAME"
+       echo "Status $DESC: $NAME"
        $DAEMON status
        ;;
   #reload)
@@ -56,9 +56,9 @@
        #       just the same as "restart".
        #
        echo -n "Restarting $DESC: "
-       $DAEMON stop > /dev/null
+       ($DAEMON stop 2>&1 > /dev/null; true)
        sleep 1
-       $DAEMON start > /dev/null
+       $DAEMON start 2>&1 > /dev/null
        echo "$NAME."
        ;;
   *)
--- dibbler-0.4.2.dfsg/debian/dibbler-relay.init        2006-03-19 
16:42:28.000000000 +0100
+++ dibbler-0.4.2.dfsg/debian/dibbler-relay.init        2006-03-19 
16:25:58.000000000 +0100
@@ -24,12 +24,12 @@
 case "$1" in
   start)
        echo -n "Starting $DESC: "
-       $DAEMON start > /dev/null
+       $DAEMON start 2>&1 > /dev/null
        echo "$NAME."
        ;;
   stop)
        echo -n "Stopping $DESC: "
-       $DAEMON stop > /dev/null
+       ($DAEMON stop 2>&1 > /dev/null; true)
        echo "$NAME."
        ;;
   status)
@@ -55,9 +55,9 @@
        #       just the same as "restart".
        #
        echo -n "Restarting $DESC: "
-       $DAEMON stop > /dev/null
+       ($DAEMON stop 2>&1 > /dev/null; true)
        sleep 1
-       $DAEMON start > /dev/null
+       $DAEMON start 2>&1 > /dev/null
        echo "$NAME."
        ;;
   *)
--- dibbler-0.4.2.dfsg/debian/dibbler-server.init       2006-03-19 
16:42:28.000000000 +0100
+++ dibbler-0.4.2.dfsg/debian/dibbler-server.init       2006-03-19 
16:25:00.000000000 +0100
@@ -25,14 +25,18 @@
 case "$1" in
   start)
        echo -n "Starting $DESC: "
-       $DAEMON start > /dev/null
+       $DAEMON start 2>&1 > /dev/null
        echo "$NAME."
        ;;
   stop)
        echo -n "Stopping $DESC: "
-       $DAEMON stop > /dev/null
+       ($DAEMON stop 2>&1 > /dev/null; true)
        echo "$NAME."
        ;;
+  status)
+       echo "Status $DESC: $NAME"
+       $DAEMON status
+       ;;
   #reload)
        #
        #       If the daemon can reload its config files on the fly
@@ -52,9 +56,9 @@
        #       just the same as "restart".
        #
        echo -n "Restarting $DESC: "
-       $(DAEMON) stop
+       ($DAEMON stop 2>&1 > /dev/null; true)
        sleep 1
-       $(DAEMON) start
+       $DAEMON start 2>&1 > /dev/null
        echo "$NAME."
        ;;
   *)



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (991, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)


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

Reply via email to