Your message dated Sat, 27 Aug 2005 01:17:11 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#320683: fixed in dhcp3 3.0.3-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 31 Jul 2005 15:09:08 +0000
>From [EMAIL PROTECTED] Sun Jul 31 08:09:08 2005
Return-path: <[EMAIL PROTECTED]>
Received: from netblock-66-245-252-35.dslextreme.com (tigger.sf.gildea.net) 
[66.245.252.35] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1DzFR6-00084e-00; Sun, 31 Jul 2005 08:09:08 -0700
Received: by tigger.sf.gildea.net (Postfix, from userid 1000)
        id 19B393CC00E; Sun, 31 Jul 2005 08:09:08 -0700 (PDT)
Received: from tigger.sf.gildea.net (localhost [127.0.0.1])
        by tigger.sf.gildea.net (Postfix) with ESMTP id 0F4C66D4074
        for <[EMAIL PROTECTED]>; Sun, 31 Jul 2005 08:09:08 -0700 (PDT)
From: Stephen Gildea <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: dhcp3-server: want status option for init script
X-Mailer: MH-E 7.82; nmh 1.1; GNU Emacs 21.4.1
Date: Sun, 31 Jul 2005 08:09:08 -0700
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: dhcp3-server
Version: 3.0.2-2
Tags: patch

The following patch provides a "status" option for the
/etc/init.d/dhcp3-server script.  It also removes the pid
file on "stop".

 < Stephen

--- dhcp3-3.0.2/debian/dhcp3-server.init.d      2005-07-31 08:00:03.000000000 
-0700
+++ debian/dhcp3-server.init.d  2005-07-31 08:02:23.000000000 -0700
@@ -18,6 +18,8 @@
 # should listen on.)
 . /etc/default/dhcp3-server
 
+NAME=dhcpd3
+DESC="DHCP server"
 DHCPDPID=/var/run/dhcpd.pid
 
 test_config()
@@ -30,24 +32,41 @@
        fi
 }
 
+# single arg is -v for messages, -q for none
+check_status()
+{
+    if [ ! -r "$DHCPDPID" ]; then
+       test "$1" != -v || echo "$NAME is not running."
+       return 3
+    fi
+    if read pid < "$DHCPDPID" && ps -p "$pid" > /dev/null 2>&1; then
+       test "$1" != -v || echo "$NAME is running."
+       return 0
+    else
+       test "$1" != -v || echo "$NAME is not running but $DHCPDPID exists."
+       return 1
+    fi
+}
+
 case "$1" in
        start)
                test_config
-               echo -n "Starting DHCP server: "
+               echo -n "Starting $DESC: "
                start-stop-daemon --start --quiet --pidfile $DHCPDPID \
                        --exec /usr/sbin/dhcpd3 -- -q $INTERFACES
                sleep 2
 
-               if [ -f "$DHCPDPID" ] && ps h `cat "$DHCPDPID"` >/dev/null; then
-                       echo "dhcpd3."
+               if check_status -q; then
+                       echo "$NAME."
                else
-                       echo "dhcpd3 failed to start - check syslog for 
diagnostics."
+                       echo "$NAME failed to start - check syslog for 
diagnostics."
                        exit 1
                fi
                ;;
        stop)
-               echo -n "Stopping DHCP server: dhcpd3"
+               echo -n "Stopping $DESC: $NAME"
                start-stop-daemon --stop --quiet --pidfile $DHCPDPID
+               rm -f "$DHCPDPID"
                echo "."
                ;;
        restart | force-reload)
@@ -59,8 +78,13 @@
                        exit 1
                fi
                ;;
+       status)
+               echo -n "Status of $DESC: "
+               check_status -v
+               exit "$?"
+               ;;
        *)
-               echo "Usage: /etc/init.d/dhcp3-server 
{start|stop|restart|force-reload}"
+               echo "Usage: $0 {start|stop|restart|force-reload|status}"
                exit 1 
 esac
 

---------------------------------------
Received: (at 320683-close) by bugs.debian.org; 27 Aug 2005 08:24:45 +0000
>From [EMAIL PROTECTED] Sat Aug 27 01:24:45 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
        id 1E8vsF-00025D-00; Sat, 27 Aug 2005 01:17:11 -0700
From: Andrew Pollock <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#320683: fixed in dhcp3 3.0.3-1
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Sat, 27 Aug 2005 01:17:11 -0700
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: dhcp3
Source-Version: 3.0.3-1

We believe that the bug you reported is fixed in the latest version of
dhcp3, which is due to be installed in the Debian FTP archive:

dhcp3-client-udeb_3.0.3-1_i386.udeb
  to pool/main/d/dhcp3/dhcp3-client-udeb_3.0.3-1_i386.udeb
dhcp3-client_3.0.3-1_i386.deb
  to pool/main/d/dhcp3/dhcp3-client_3.0.3-1_i386.deb
dhcp3-common_3.0.3-1_i386.deb
  to pool/main/d/dhcp3/dhcp3-common_3.0.3-1_i386.deb
dhcp3-dev_3.0.3-1_i386.deb
  to pool/main/d/dhcp3/dhcp3-dev_3.0.3-1_i386.deb
dhcp3-relay_3.0.3-1_i386.deb
  to pool/main/d/dhcp3/dhcp3-relay_3.0.3-1_i386.deb
dhcp3-server_3.0.3-1_i386.deb
  to pool/main/d/dhcp3/dhcp3-server_3.0.3-1_i386.deb
dhcp3_3.0.3-1.diff.gz
  to pool/main/d/dhcp3/dhcp3_3.0.3-1.diff.gz
dhcp3_3.0.3-1.dsc
  to pool/main/d/dhcp3/dhcp3_3.0.3-1.dsc
dhcp3_3.0.3.orig.tar.gz
  to pool/main/d/dhcp3/dhcp3_3.0.3.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrew Pollock <[EMAIL PROTECTED]> (supplier of updated dhcp3 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 25 Aug 2005 13:47:41 +1000
Source: dhcp3
Binary: dhcp3-client-udeb dhcp3-common dhcp3-relay dhcp3-dev dhcp3-client 
dhcp3-server
Architecture: source i386
Version: 3.0.3-1
Distribution: unstable
Urgency: low
Maintainer: Eloy A. Paris <[EMAIL PROTECTED]>
Changed-By: Andrew Pollock <[EMAIL PROTECTED]>
Description: 
 dhcp3-client - DHCP Client
 dhcp3-client-udeb - DHCP Client for debian-installer (udeb)
 dhcp3-common - Common files used by all the dhcp3* packages
 dhcp3-dev  - API for accessing and modifying the DHCP server and client state
 dhcp3-relay - DHCP Relay
 dhcp3-server - DHCP server for automatic IP address assignment
Closes: 320683 321028 321734 324886
Changes: 
 dhcp3 (3.0.3-1) unstable; urgency=low
 .
   * New upstream release (closes: #324886)
   * Added NEWS.Debian regarding change in functionality with respect to
     next-server now being required for booting.
 .
 dhcp3 (3.0.2-4) unstable; urgency=low
 .
   * Added patch from Aurelien Jarno to support GNU/kFreeBSD (closes: #321028)
   * debian/dhcp3-server.preinst: fixed bashism
   * debian/dhcp3-relay.prerm: fixed bashisms
   * debian/dhcp3-client.preinst: fixed bashisms
   * Updated Czech debconf templates translation (closes: #321734)
   * debian/dhcp3-server.init.d: Applied patch from Stephen Gildea to provide
     status option (closes: #320683)
Files: 
 8ee01fc27b5e4a29879bf92ddd507152 749 net extra dhcp3_3.0.3-1.dsc
 f91416a0b8ed3fd0601688cf0b7df58f 870240 net extra dhcp3_3.0.3.orig.tar.gz
 513857f52ef12b4a1479ed402ba140cc 52930 net extra dhcp3_3.0.3-1.diff.gz
 1d043dbe04148f47c9b28fe269734fbe 527068 net extra dhcp3-server_3.0.3-1_i386.deb
 9b106c9dc90a45c925393fec31bdf164 176250 net extra dhcp3-common_3.0.3-1_i386.deb
 428e04344576ab4b6fc362404a562f4e 97700 devel extra dhcp3-dev_3.0.3-1_i386.deb
 14c0c28669570332bb94ff72910b0e8f 435460 net extra dhcp3-client_3.0.3-1_i386.deb
 00accba46a49872fbd5c07251a97e203 148286 debian-installer extra 
dhcp3-client-udeb_3.0.3-1_i386.udeb
 f87c1cb3baeb12ee70f0031079053753 336456 net extra dhcp3-relay_3.0.3-1_i386.deb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDEB3bIblXXKfZFgIRAvdRAJ44Li6Kb9Sa6guzKP+lSJl8tluUMgCfbwGA
5hNoWtGM3g1tu0qa5WsvbDE=
=g0SD
-----END PGP SIGNATURE-----


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

Reply via email to