mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
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>
This commit is contained in:
@@ -35,6 +35,9 @@ test -x $DAEMON || exit 0
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Source function library.
|
||||||
|
. /etc/init.d/functions
|
||||||
|
|
||||||
# construct access list
|
# construct access list
|
||||||
ALLOW=""
|
ALLOW=""
|
||||||
for net in $ALLOWEDNETS
|
for net in $ALLOWEDNETS
|
||||||
@@ -94,9 +97,14 @@ case "$1" in
|
|||||||
}
|
}
|
||||||
echo "."
|
echo "."
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
status)
|
||||||
|
status $DAEMON
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
N=/etc/init.d/$NAME
|
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
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user