diff options
author | Jesse Zhang <sen.zhang@windriver.com> | 2013-02-20 03:12:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-03 16:58:13 +0100 |
commit | 7945add420db51bba165d5f02105acf92ec57b26 (patch) | |
tree | 7770a29480435a384257c8ce6dcab2b46f497101 /meta | |
parent | 337e25aac55d8f59a2e172f362be84696bb63bd0 (diff) | |
download | poky-7945add420db51bba165d5f02105acf92ec57b26.tar.gz |
initscripts: let status return 0 when proc is running well
Ensure that the status returns 0 instead of the last shell command result,
otherwise the calling script can not properly detect the status of pid.
(From OE-Core master rev: d9d4fdc769dfe6bf9838f5c5f3189a80f0e3cf90)
(From OE-Core rev: 74c3959c7b4554fa706cfb177446050798be67b5)
Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/initscripts/initscripts-1.0/functions | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/functions b/meta/recipes-core/initscripts/initscripts-1.0/functions index 944e3a59b0..8e15762f8a 100644 --- a/meta/recipes-core/initscripts/initscripts-1.0/functions +++ b/meta/recipes-core/initscripts/initscripts-1.0/functions | |||
@@ -52,6 +52,7 @@ status() { | |||
52 | pid=`pidofproc $1` | 52 | pid=`pidofproc $1` |
53 | if [ -n "$pid" ]; then | 53 | if [ -n "$pid" ]; then |
54 | echo "$1 (pid $pid) is running..." | 54 | echo "$1 (pid $pid) is running..." |
55 | return 0 | ||
55 | else | 56 | else |
56 | echo "$1 is stopped" | 57 | echo "$1 is stopped" |
57 | fi | 58 | fi |