Package: watchdog
Version: 5.10-1
Severity: wishlist
Tags: patch

Here is a patch to add support for the "status" action to the
wd_keepalive init.d script.
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+watchdog (5.10-1.1) UNRELEASED; urgency=low
+
+  * Added support for "status" action to wd_keepalive init.d script
+
+ -- Peter Eisentraut <pet...@debian.org>  Tue, 27 Dec 2011 21:08:17 +0200
+
 watchdog (5.10-1) unstable; urgency=low
 
   * New upstream version. (Closes: #597213)
--- a/debian/wd_keepalive.init
+++ b/debian/wd_keepalive.init
@@ -34,6 +34,8 @@
 
 STOP_RETRY_SCHEDULE='TERM/10/forever/KILL/1'
 
+. /lib/lsb/init-functions
+
 case "$1" in
   start)
     if [ $run_watchdog = 1 ]
@@ -64,6 +66,10 @@
     fi
     ;;
 
+  status)
+    status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+    ;;
+
   restart)
     $0 force-reload
     ;;
@@ -84,7 +90,7 @@
     ;;
 
   *)
-    echo "Usage: /etc/init.d/wd_keepalive {start|stop|restart|force-reload}"
+    echo "Usage: /etc/init.d/wd_keepalive {start|stop|status|restart|force-reload}"
     exit 1
 
 esac

Reply via email to