diff options
Diffstat (limited to 'meta/recipes-devtools/distcc')
-rwxr-xr-x | meta/recipes-devtools/distcc/files/distcc | 10 |
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 | ||
36 | set -e | 36 | set -e |
37 | 37 | ||
38 | # Source function library. | ||
39 | . /etc/init.d/functions | ||
40 | |||
38 | # construct access list | 41 | # construct access list |
39 | ALLOW="" | 42 | ALLOW="" |
40 | for net in $ALLOWEDNETS | 43 | for 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 | ;; |
102 | esac | 110 | esac |