Package: dropbear
Version: 0.52-2
Severity: minor

Wile booting, one wonders where this message comes from:

     NO_START is set to zero

The attached patch improves these messages by announcing the
service name and state (starting, restarting).

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=ANSI_X3.4-1968) 
(ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages dropbear depends on:
ii  libc6                  2.9-12            GNU C Library: Shared libraries
ii  zlib1g                 1:1.2.3.3.dfsg-13 compression library - runtime

dropbear recommends no packages.

Versions of packages dropbear suggests:
ii  openssh-client                1:5.1p1-6  secure shell client, an rlogin/rsh
pn  runit                         <none>     (no description available)
ii  udev                          0.141-1    /dev/ and hotplug management daemo

-- no debconf information
>From a10d441c944fb0421ab3874402228a2be6522ff5 Mon Sep 17 00:00:00 2001
From: Jari Aalto <[email protected]>
Date: Fri, 14 Aug 2009 09:17:05 +0300
Subject: [PATCH] dropbear.init: Improve abort messages due to 
/etc/default/dropbear::NO_START

Signed-off-by: Jari Aalto <[email protected]>
---
 dropbear.init |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dropbear.init b/dropbear.init
index 1705330..45c60fc 100644
--- a/dropbear.init
+++ b/dropbear.init
@@ -14,6 +14,7 @@ 
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 DAEMON=/usr/sbin/dropbear
 NAME=dropbear
 DESC="Dropbear SSH server"
+DEFAULTCFG=/etc/default/dropbear
 
 DROPBEAR_PORT=22
 DROPBEAR_EXTRA_ARGS=
@@ -22,7 +23,7 @@ NO_START=0
 set -e
 
 cancel() { echo "$1" >&2; exit 0; };
-test ! -r /etc/default/dropbear || . /etc/default/dropbear
+test ! -r $DEFAULTCFG || . $DEFAULTCFG
 test -x "$DAEMON" || cancel "$DAEMON does not exist or is not executable."
 test ! -x /usr/sbin/update-service || ! update-service --check dropbear ||
   cancel 'The dropbear service is controlled through runit, use the sv(8) 
program'
@@ -38,7 +39,9 @@ test -n "$DROPBEAR_RECEIVE_WINDOW" || \
 
 case "$1" in
   start)
-       test "$NO_START" = "0" || cancel 'NO_START is not set to zero.'
+       test "$NO_START" = "0" ||
+       cancel "Starting $DESC: [abort] NO_START is not set to zero in 
$DEFAULTCFG"
+
        echo -n "Starting $DESC: "
        start-stop-daemon --start --quiet --pidfile /var/run/"$NAME".pid \
          --exec "$DAEMON" -- -d "$DROPBEAR_DSSKEY" -r "$DROPBEAR_RSAKEY" \
@@ -51,7 +54,9 @@ case "$1" in
        echo "$NAME."
        ;;
   restart|force-reload)
-       test "$NO_START" = "0" || cancel 'NO_START is not set to zero.'
+       test "$NO_START" = "0" ||
+       cancel "Restarting $DESC: [abort] NO_START is not set to zero in 
$DEFAULTCFG"
+
        echo -n "Restarting $DESC: "
        start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/"$NAME".pid
        sleep 1
-- 
1.6.3.3

Reply via email to