summaryrefslogtreecommitdiffstats
path: root/meta
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 23:03:20 +0100
commite0d66651c591ca50e1f716eefaec163d60e10b0e (patch)
tree66af88dd74581639c0fd26bad84b686e2a20ad59 /meta
parenteb34e8d8cee816dc64ad7ffc0eaa8cdc9a04d5eb (diff)
downloadpoky-e0d66651c591ca50e1f716eefaec163d60e10b0e.tar.gz
distcc: add init.d/distcc status command for LSB compliance
(From OE-Core rev: ab9694411840a9a78e9b6bbd24ef497be9f042b9) Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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
35 35
36set -e 36set -e
37 37
38# Source function library.
39. /etc/init.d/functions
40
38# construct access list 41# construct access list
39ALLOW="" 42ALLOW=""
40for net in $ALLOWEDNETS 43for net in $ALLOWEDNETS
@@ -94,9 +97,14 @@ case "$1" in
94 } 97 }
95 echo "." 98 echo "."
96 ;; 99 ;;
100
101 status)
102 status $DAEMON
103 exit $?
104 ;;
97 *) 105 *)
98 N=/etc/init.d/$NAME 106 N=/etc/init.d/$NAME
99 echo "Usage: $N {start|stop|restart|force-reload}" >&2 107 echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
100 exit 1 108 exit 1
101 ;; 109 ;;
102esac 110esac