[gearman-server] 10/11: Implement LSB description and status option, source init-functions

Florian Schlichting fsfs at moszumanska.debian.org
Fri Sep 11 22:21:10 UTC 2015


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

fsfs pushed a commit to branch master
in repository gearman-server.

commit 9cae22ec38de2271ee161826cefd3ac0bb4c308d
Author: Florian Schlichting <fsfs at debian.org>
Date:   Sat Sep 12 00:08:39 2015 +0200

    Implement LSB description and status option, source init-functions
---
 debian/gearman-server.init | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/gearman-server.init b/debian/gearman-server.init
index 9b9549f..1a94a6c 100644
--- a/debian/gearman-server.init
+++ b/debian/gearman-server.init
@@ -15,10 +15,14 @@
 # Required-Stop: $syslog $network $local_fs $remote_fs
 # Default-Start: 2 3 4 5
 # Default-Stop: 0 1 6
+# Description: Gearman is a system to farm out work to other machines, dispatching function
+#  calls to machines that are better suited to do work, to do work in parallel,
+#  to load balance lots of function calls, or even to call functions between
+#  languages
 # Short-Description: Gearman distributed work system
 ### END INIT INFO
 
-
+. /lib/lsb/init-functions
 
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 DAEMON=/usr/bin/gearmand
@@ -52,6 +56,9 @@ case "$1" in
 	echo "$NAME."
 	rm -f /var/run/$NAME.pid
 	;;
+  status)
+        status_of_proc -p /var/run/$NAME.pid $DAEMON $NAME
+        ;;
   #reload)
 	#
 	#	If the daemon can reload its config files on the fly

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/gearman-server.git



More information about the Pkg-perl-cvs-commits mailing list