Package: brltty
Version: 3.4.1-3
Severity: wishlist
Tags: patch

Hi,

It sometimes takes a long time for brltty to get down (if it doesn't
even get stuck). Instead of an arbitrary 5s pause, I'd propose the
following patch:

--- /etc/init.d/brltty.old      2005-06-12 21:34:02.000000000 +0200
+++ /etc/init.d/brltty  2005-06-12 21:38:54.000000000 +0200
@@ -19,17 +19,12 @@
        ;;
   stop)
        echo -n "Stopping $DESC: "
-       start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
+       start-stop-daemon --stop --quiet --oknodo --retry 5 --pidfile $PIDFILE
        echo "$NAME."
        ;;
   restart|force-reload)
        echo -n "Restarting $DESC: "
-       start-stop-daemon --stop --quiet --pidfile $PIDFILE
-       echo -n .
-       for i in 1 2 3 4 5; do
-           sleep 1
-           echo -n .
-       done
+       start-stop-daemon --stop --quiet --retry 5 --pidfile $PIDFILE
        start-stop-daemon --start --quiet \
                --pidfile $PIDFILE --startas $DAEMON -- -P $PIDFILE
        echo "$NAME."


Regards,
Samuel Thibault

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (900, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-rc4
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages brltty depends on:
ii  debconf [debconf-2.0]       1.4.51       Debian configuration management sy
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

-- debconf information excluded


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

Reply via email to