Source: mbmon
Version: 2.05-6
Severity: wishlist
Tags: patch

Here is a patch to add support for the "status" action to the init.d
script of mbmon.
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+xmbmon (2.05-6.1) UNRELEASED; urgency=low
+
+  * Added support for "status" action to mbmon init.d script
+
+ -- Peter Eisentraut <pet...@debian.org>  Sun, 25 Dec 2011 15:57:38 +0200
+
 xmbmon (2.05-6) unstable; urgency=low
 
   * ACK NMU while preparing upload. (Closes: #460243)
--- a/debian/mbmon.init.d
+++ b/debian/mbmon.init.d
@@ -33,6 +33,8 @@
     echo "Edit ${CFG} if you want it to start automatically"
     exit 0 ; }
 
+. /lib/lsb/init-functions
+
 case "$1" in
 start)
     echo -n "Starting $DESC: "
@@ -53,6 +55,9 @@
         echo $NAME
     fi
     ;;
+status)
+    status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+    ;;
 restart | force-reload)
     $0 stop
     sleep 2
@@ -66,7 +71,7 @@
     fi
     ;;
 *)
-    echo "Usage: $0 {start|stop|restart|force-reload}" >&2
+    echo "Usage: $0 {start|stop|status|restart|force-reload}" >&2
     exit 1
     ;;
 esac
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,7 @@
 
 Package: mbmon
 Architecture: i386 hurd-i386 amd64 kfreebsd-i386 knetbsd-i386 kfreebsd-amd64
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, lsb-base
 Suggests: xmbmon, librrds-perl
 Enhances: rrdtool
 Description: Hardware monitoring without kernel dependencies (text client)

Reply via email to