Package: memcached
Version: 1.2.5-1
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.
diff -u memcached-1.2.8/scripts/memcached-init memcached-1.2.8/scripts/memcached-init
--- memcached-1.2.8/scripts/memcached-init
+++ memcached-1.2.8/scripts/memcached-init
@@ -24,6 +24,8 @@
 
 set -e
 
+. /lib/lsb/init-functions
+
 # Edit /etc/default/memcached to change this.
 ENABLE_MEMCACHED=no
 test -r /etc/default/memcached && . /etc/default/memcached
@@ -58,10 +60,12 @@
 	start-stop-daemon --start --quiet --exec $DAEMONBOOTSTRAP
 	echo "$NAME."
 	;;
+  status)
+	status_of_proc $DAEMON $NAME
+	;;
   *)
 	N=/etc/init.d/$NAME
-	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
-	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
 	exit 1
 	;;
 esac
diff -u memcached-1.2.8/debian/control memcached-1.2.8/debian/control
--- memcached-1.2.8/debian/control
+++ memcached-1.2.8/debian/control
@@ -8,7 +8,7 @@
 
 Package: memcached
 Architecture: any
-Depends: ${shlibs:Depends}, perl, ${misc:Depends}
+Depends: ${shlibs:Depends}, perl, ${misc:Depends}, lsb-base (>= 3.2-13)
 Suggests: libcache-memcached-perl
 Description: A high-performance memory object caching system
  Danga Interactive developed memcached to enhance the speed of LiveJournal.com, 

Reply via email to