Add status command for LSB compliance for some packages
cover Add status command for LSB compliance for some packages
From: "Roy.Li" <[email protected]>
The following changes since commit 619e63946fef32995363981aab288fc669e8ac04:
pulseaudio: disable GTK+ by default (2013-09-02 18:04:56 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib roy/status
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=roy/status
Roy.Li (2):
distcc: add init.d/distcc status command for LSB compliance
irda-utils: add init.d/irattach status command for LSB compliance
meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init | 9 ++++++++- meta/recipes-devtools/distcc/files/distcc | 10 +++++++++- 2 files changed, 17 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.10.4
PATCH 1/2 distcc: add init.d/distcc status command for LSB compliance
From: "Roy.Li" <[email protected]>
Signed-off-by Roy.Li <[email protected]>
--- meta/recipes-devtools/distcc/files/distcc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
meta/recipes-devtools/distcc/files/distcc +9 -1
@@ -35,6 +35,9 @@ test -x $DAEMON || exit 0 set -e +# Source function library. +. /etc/init.d/functions + # construct access list ALLOW="" for net in $ALLOWEDNETS
@@ -94,9 +97,14 @@ case "$1" in } echo "." ;; + + status) + status $DAEMON + exit $? + ;; *) N=/etc/init.d/$NAME - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac
Signature · 1 line
1.7.10.4
PATCH 2/2 irda-utils: add init.d/irattach status command for LSB compliance
In reply to [email protected]From: "Roy.Li" <[email protected]>
Signed-off-by Roy.Li <[email protected]>
--- meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init +8 -1
@@ -8,6 +8,9 @@ # Short-Description: Infrared port support ### END INIT INFO +# Source function library. +. /etc/init.d/functions + module_id() { awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo }
@@ -62,9 +65,13 @@ case "$1" in killall irattach > /dev/null 2>&1 echo "$NAME." ;; + status) + status irattach + exit $? + ;; *) N=/etc/init.d/$NAME - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac
Signature · 1 line
1.7.10.4