summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRoy.Li <rongqing.li@windriver.com>2013-09-03 13:19:23 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-06 12:08:39 +0100
commitab9694411840a9a78e9b6bbd24ef497be9f042b9 (patch)
tree30374a7e2080dbbd161e9fab8be6abdcb9cbb911 /meta/recipes-devtools
parent9ea32ef507c914f906b3dcc0bb29813a4e0dacba (diff)
downloadopenembedded-core-ab9694411840a9a78e9b6bbd24ef497be9f042b9.tar.gz
openembedded-core-ab9694411840a9a78e9b6bbd24ef497be9f042b9.tar.bz2
openembedded-core-ab9694411840a9a78e9b6bbd24ef497be9f042b9.zip
distcc: add init.d/distcc status command for LSB compliance
Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rwxr-xr-xmeta/recipes-devtools/distcc/files/distcc10
1 files changed, 9 insertions, 1 deletions
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