From ab9694411840a9a78e9b6bbd24ef497be9f042b9 Mon Sep 17 00:00:00 2001 From: "Roy.Li" Date: Tue, 3 Sep 2013 13:19:23 +0800 Subject: distcc: add init.d/distcc status command for LSB compliance Signed-off-by: Roy.Li Signed-off-by: Richard Purdie --- meta/recipes-devtools/distcc/files/distcc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'meta/recipes-devtools') diff --git a/meta/recipes-devtools/distcc/files/distcc b/meta/recipes-devtools/distcc/files/distcc index 513bc483ea..c7c414d829 100755 --- a/meta/recipes-devtools/distcc/files/distcc +++ b/meta/recipes-devtools/distcc/files/distcc @@ -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 -- cgit 1.2.3-korg