Package: rinetd
Version: 0.62-5.1
Severity: wishlist
Tags: patch

The attached patch adds the LSB 'status' to the rinetd initscript. This
is useful for monitoring / automation, etc.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org
       `-
diff --git a/debian/init b/debian/init
index 67f0c15..bd3ca60 100644
--- a/debian/init
+++ b/debian/init
@@ -16,6 +16,8 @@ DESC="internet redirection server"
 test -f $DAEMON || exit 0
 test -f $CONFFILE || exit 0
 
+. /lib/lsb/init-functions
+
 set -e
 
 case "$1" in
@@ -43,6 +45,9 @@ case "$1" in
     start-stop-daemon --start --quiet --pidfile /var/run/rinetd.pid --exec 
$DAEMON && echo -n " $NAME"
     echo "."
     ;;
+  status)
+    status_of_proc -p /var/run/rinetd.pid $DAEMON $NAME
+    ;;
   *)
     echo "Usage: /etc/init.d/$NAME {start|stop|reload|restart|force-reload}"
     exit 1

Reply via email to