Package: mpd
Version: 0.14.2-3
Severity: wishlist
Tags: patch
User: pet...@debian.org
Usertags: initd-status-support

Here is a patch to support the "status" action in the init.d script.

Note that your package was already missing a dependency on lsb-base.
diff -u mpd-0.15/debian/changelog mpd-0.15/debian/changelog
--- mpd-0.15/debian/changelog
+++ mpd-0.15/debian/changelog
@@ -1,3 +1,10 @@
+mpd (0.15-2.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Add init.d status support
+
+ -- Peter Eisentraut <pet...@debian.org>  Thu, 09 Jul 2009 00:14:51 +0300
+
 mpd (0.15-2) unstable; urgency=low
 
   * Enable SQLite, libcue, sidplay, and libmms.
diff -u mpd-0.15/debian/mpd.init.d mpd-0.15/debian/mpd.init.d
--- mpd-0.15/debian/mpd.init.d
+++ mpd-0.15/debian/mpd.init.d
@@ -106,6 +106,9 @@
         mpd_stop
         mpd_start
         ;;
+    status)
+	status_of_proc -p $PIDFILE $DAEMON $NAME
+	;;
     *)
         echo "Usage: $0 {start|start-create-db|stop|restart}"
         exit 2
diff -u mpd-0.15/debian/control mpd-0.15/debian/control
--- mpd-0.15/debian/control
+++ mpd-0.15/debian/control
@@ -8,7 +8,7 @@
 
 Package: mpd
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, lsb-base (>= 3.2-13)
 Suggests: mpd-client, icecast2, pulseaudio, avahi-daemon
 Description: Music Player Daemon
  Music Player Daemon (MPD) is a server that allows remote access for

Reply via email to