diff options
Diffstat (limited to 'meta/recipes-extended/rpcbind')
-rw-r--r-- | meta/recipes-extended/rpcbind/rpcbind/init.d | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-extended/rpcbind/rpcbind/init.d b/meta/recipes-extended/rpcbind/rpcbind/init.d index d418673aa0..67499aa828 100644 --- a/meta/recipes-extended/rpcbind/rpcbind/init.d +++ b/meta/recipes-extended/rpcbind/rpcbind/init.d | |||
@@ -16,6 +16,9 @@ | |||
16 | # RPC include NFS and NIS. | 16 | # RPC include NFS and NIS. |
17 | ### END INIT INFO | 17 | ### END INIT INFO |
18 | 18 | ||
19 | # Source function library. | ||
20 | . /etc/init.d/functions | ||
21 | |||
19 | test -f /sbin/rpcbind || exit 0 | 22 | test -f /sbin/rpcbind || exit 0 |
20 | 23 | ||
21 | OPTIONS="" | 24 | OPTIONS="" |
@@ -73,8 +76,7 @@ case "$1" in | |||
73 | start $OPTIONS | 76 | start $OPTIONS |
74 | ;; | 77 | ;; |
75 | status) | 78 | status) |
76 | pidof /sbin/rpcbind >/dev/null | 79 | status /sbin/rpcbind |
77 | exit $? | ||
78 | ;; | 80 | ;; |
79 | *) | 81 | *) |
80 | echo "Usage: /etc/init.d/rpcbind {start|stop|force-reload|restart|status}" | 82 | echo "Usage: /etc/init.d/rpcbind {start|stop|force-reload|restart|status}" |
@@ -82,4 +84,4 @@ case "$1" in | |||
82 | ;; | 84 | ;; |
83 | esac | 85 | esac |
84 | 86 | ||
85 | exit 0 | 87 | exit $? |