Package: bittorrent
Version: 3.4.2-6
Severity: minor
Tags: patch

If the tracker isn't running (if, e.g., /etc/default/bittorrent sets
START_BTTRACK to 0),

 /etc/init.d/bittorrent stop

displays

 Stopping BitTorrent tracker: bttrack.bittorrent

without a trailing period or newline.  Here's the relevant excerpt
from section 9.4 of Policy:

> When you stop or restart a daemon, you should issue a message
> identical to the startup message, except that Starting is replaced
> with Stopping or Restarting respectively.
> 
> For example, stopping the printer daemon will like like this:
> 
>  Stopping printer spooler: lpd.

Passing --oknodo to start-stop-daemon in the stop case results in this
behavior.  The attached patch does so.

-- 
Matt
diff -ru bittorrent-3.4.2.orig/debian/bittorrent.init 
bittorrent-3.4.2/debian/bittorrent.init
--- bittorrent-3.4.2.orig/debian/bittorrent.init        2006-01-03 
08:49:17.000000000 -0800
+++ bittorrent-3.4.2/debian/bittorrent.init     2006-01-03 08:49:59.000000000 
-0800
@@ -76,7 +76,7 @@
 #Function that stops the daemon/service.
 #
 d_stop() {
-start-stop-daemon --stop --quiet --pidfile "$PIDFILE"
+start-stop-daemon --stop --oknodo --quiet --pidfile "$PIDFILE"
 }
 
 case "$1" in

Attachment: signature.asc
Description: Digital signature

Reply via email to