This is an automated email from the git hooks/post-receive script.

mehdi pushed a commit to branch master
in repository mldonkey.

commit cb2d0c303a27b26b4d32299777f7e180146114c0
Author: Mehdi Dogguy <me...@debian.org>
Date:   Thu Mar 27 00:22:07 2014 +0100

    Add support for "status" action to mldonkey-server init script (Closes: 
#647719)
---
 debian/changelog            | 4 ++++
 debian/control              | 1 +
 debian/mldonkey-server.init | 8 +++++++-
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 5f9297c..fb1c6bd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,11 @@
 mldonkey (3.1.5-1) UNRELEASED; urgency=low
 
+  [ Mehdi Dogguy ]
   * New upstream release.
 
+  [ Peter Eisentraut ]
+  * Add support for "status" action to mldonkey-server init script (Closes: 
#647719)
+
  -- Mehdi Dogguy <me...@debian.org>  Thu, 27 Mar 2014 00:14:47 +0100
 
 mldonkey (3.1.3-1) unstable; urgency=low
diff --git a/debian/control b/debian/control
index 2a6a4d0..a2f476b 100644
--- a/debian/control
+++ b/debian/control
@@ -36,6 +36,7 @@ Depends:
  ${ocaml:Depends},
  ${misc:Depends},
  adduser,
+ lsb-base,
  mime-support,
  debconf,
  ucf
diff --git a/debian/mldonkey-server.init b/debian/mldonkey-server.init
index c5f8901..9483707 100644
--- a/debian/mldonkey-server.init
+++ b/debian/mldonkey-server.init
@@ -33,6 +33,8 @@ PIDFILE=$PIDDIR/$NAME.pid
 LOGFILE=/var/log/mldonkey/mldonkey-server.log
 SERVERLOG=/var/log/mldonkey/mlnet.log
 
+. /lib/lsb/init-functions
+
 test -e $CONFIG || exit 0
 
 set -e
@@ -149,8 +151,12 @@ case "$1" in
     $0 start
   ;;
 
+  status)
+    status_of_proc "$EXEC" "$NAME" && exit 0 || exit $?
+  ;;
+
   *)
-    Error 1 "Usage: $0 {start|stop|restart|force-reload|force-start}"
+    Error 1 "Usage: $0 {start|stop|restart|force-reload|force-start|status}"
   ;;
 esac
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-ocaml-maint/packages/mldonkey.git

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to