diff options
author | Jesse Zhang <sen.zhang@windriver.com> | 2013-02-20 03:12:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-30 20:59:11 +0100 |
commit | 3f561e9b3e0013250ddca8120b95a20aab78f93c (patch) | |
tree | 1cfc152cfacfb028b9760d9c1e6141c032a65048 /meta/recipes-core | |
parent | 35c9b6e1b6f0fd4a609fcbf595124d6c65847804 (diff) | |
download | ast2050-yocto-poky-3f561e9b3e0013250ddca8120b95a20aab78f93c.zip ast2050-yocto-poky-3f561e9b3e0013250ddca8120b95a20aab78f93c.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 rev: d9d4fdc769dfe6bf9838f5c5f3189a80f0e3cf90)
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/recipes-core')
-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 944e3a5..8e15762 100644 --- a/meta/recipes-core/initscripts/initscripts-1.0/functions +++ b/meta/recipes-core/initscripts/initscripts-1.0/functions @@ -52,6 +52,7 @@ status() { pid=`pidofproc $1` if [ -n "$pid" ]; then echo "$1 (pid $pid) is running..." + return 0 else echo "$1 is stopped" fi |