Source: gearman-job-server Severity: wishlist According to LSB all init script should at least define a certain subset of supported actions. Currently /etc/init.d/gearman-job-server does not support the "status" action. I've attached a patch to add "status" to the supported commands.
-- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.1.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- gearman-job-server.orig 2011-12-21 08:10:46.232004656 +0100 +++ gearman-job-server 2011-12-21 08:08:24.404008393 +0100 @@ -19,6 +19,7 @@ prefix=/usr exec_prefix=${prefix} +NAME=gearmand DAEMON=${exec_prefix}/sbin/gearmand PIDDIR=/var/run/gearman PIDFILE=${PIDDIR}/gearmand.pid @@ -72,6 +73,11 @@ fi } +status() +{ + status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $? +} + case "$1" in start) @@ -82,13 +88,17 @@ stop ;; + status) + status + ;; + restart|force-reload) stop start ;; *) - echo "Usage: $0 {start|stop|restart|force-reload}" + echo "Usage: $0 {start|stop|restart|force-reload|status}" ;; esac