Your message dated Tue, 24 May 2011 12:05:03 +0000
with message-id <[email protected]>
and subject line Bug#493970: fixed in stun 0.96.dfsg-6
has caused the Debian Bug report #493970,
regarding stun rc script is missing status option
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
493970: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493970
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: stun
Version: 0.96.dfsg-5
Severity: normal
Tags: patch

Hi,

/etc/init.d/stun is missing the 'status' option.
I've attached a patch to support this function.

BR
Björn
--- stun        2007-11-02 07:35:04.000000000 +0100
+++ stun-new    2008-08-06 11:21:32.000000000 +0200
@@ -27,6 +27,7 @@
 NAME=stun
 DESC=stun
 START_DAEMON=false
+PIDFILE=/var/run/$NAME.pid
 
 test -x $DAEMON || exit 0
 
@@ -65,13 +66,13 @@
   start)
        echo -n "Starting $DESC: "
        start-stop-daemon --start --quiet --background --make-pidfile \
-               --pidfile /var/run/$NAME.pid \
+               --pidfile $PIDFILE \
                --chuid $DAEMON_USER --exec $DAEMON -- $DAEMON_OPTS
        echo "$NAME."
        ;;
   stop)
        echo -n "Stopping $DESC: "
-       start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
+       start-stop-daemon --stop --quiet --pidfile $PIDFILE \
                --chuid $DAEMON_USER --exec $DAEMON
        echo "$NAME."
        ;;
@@ -85,7 +86,7 @@
        #
        # echo "Reloading $DESC configuration files."
        # start-stop-daemon --stop --signal 1 --quiet --pidfile \
-       #       /var/run/$NAME.pid --exec $DAEMON
+       #       $PIDFILE --exec $DAEMON
   #;;
   restart|force-reload)
        #
@@ -95,16 +96,32 @@
        #
        echo -n "Restarting $DESC: "
        start-stop-daemon --stop --quiet --pidfile \
-               /var/run/$NAME.pid --exec $DAEMON
+               $PIDFILE --exec $DAEMON
        sleep 1
        start-stop-daemon --start --quiet --pidfile \
-               /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+               $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
        echo "$NAME."
        ;;
+  status)
+       echo -n "Status of $DESC: "
+
+       if [ ! -r "$PIDFILE" ]; then
+           echo "$NAME is not running."
+           exit 3
+       fi
+
+       if read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
+           echo "$NAME is running."
+           exit 0
+       else
+           echo "$NAME is not running but $PIDFILE exists."
+           exit 1
+       fi
+       ;;
   *)
        N=/etc/init.d/$NAME
-       # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
-       echo "Usage: $N {start|stop|restart|force-reload}" >&2
+       # echo "Usage: $N {start|stop|restart|status|reload|force-reload}" >&2
+       echo "Usage: $N {start|stop|restart|status|force-reload}" >&2
        exit 1
        ;;
 esac

--- End Message ---
--- Begin Message ---
Source: stun
Source-Version: 0.96.dfsg-6

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

stun_0.96.dfsg-6.diff.gz
  to main/s/stun/stun_0.96.dfsg-6.diff.gz
stun_0.96.dfsg-6.dsc
  to main/s/stun/stun_0.96.dfsg-6.dsc
stun_0.96.dfsg-6_amd64.deb
  to main/s/stun/stun_0.96.dfsg-6_amd64.deb



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.
Kilian Krause <[email protected]> (supplier of updated stun 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.8
Date: Tue, 24 May 2011 13:49:32 +0200
Source: stun
Binary: stun
Architecture: source amd64
Version: 0.96.dfsg-6
Distribution: unstable
Urgency: low
Maintainer: Debian VoIP Team <[email protected]>
Changed-By: Kilian Krause <[email protected]>
Description: 
 stun       - Server daemon and test client for STUN
Closes: 493970 615190 620342
Changes: 
 stun (0.96.dfsg-6) unstable; urgency=low
 .
   [ Kilian Krause ]
   * Add Homepage field as added in dpkg-dev 1.14.6. (Closes: #620342, #615190)
   * Fixed debian/watch file.
   * Add status option to init file (Closes: #493970)
 .
   [ Patrick Matthäi ]
   * Fixed spelling error in debian/changelog: s/standart/standard/.
     Thanks lintian.
Checksums-Sha1: 
 275a13cd3d08a04446067509f88dfaa730776fe4 1338 stun_0.96.dfsg-6.dsc
 e99c632658c0f1dda34bbd5ffda32c77fff4831a 6668 stun_0.96.dfsg-6.diff.gz
 05feb31280aab1acd08d0e2c1e1417f0f7a630d4 50038 stun_0.96.dfsg-6_amd64.deb
Checksums-Sha256: 
 da3d985e4bb65fe329115e2d559efbcc3bd7158be94b59819c3c5d38918558bb 1338 
stun_0.96.dfsg-6.dsc
 971252588d6d53d7e48f060c9383abacb5b54ad581299220731ab67ba3a0a4ec 6668 
stun_0.96.dfsg-6.diff.gz
 999efcc6dd6faf6b3bf862ba151c1abe8e153c0401ad1ed72f83aa1336cc564a 50038 
stun_0.96.dfsg-6_amd64.deb
Files: 
 ef02a6134fff0602ff2f947fc91987a4 1338 net optional stun_0.96.dfsg-6.dsc
 696c9703e799d6ab1e53ee561ae94ab7 6668 net optional stun_0.96.dfsg-6.diff.gz
 cb2010860ec7bfe9df4e37fc8dc96b33 50038 net optional stun_0.96.dfsg-6_amd64.deb

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

iD8DBQFN25w/vdkzt4X+wX8RAp6kAJ98jgPoceRV4Wu//e8NVAH2c2udtACggbjc
sWaYIP2yu5uF0HF/R80yvLA=
=ePbD
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to