[oe-commits] Jesse Zhang : initscripts: let status return 0 when proc is running well

git at git.openembedded.org git at git.openembedded.org
Mon Jun 3 15:52:21 UTC 2013


Module: openembedded-core.git
Branch: dylan
Commit: 74c3959c7b4554fa706cfb177446050798be67b5
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=74c3959c7b4554fa706cfb177446050798be67b5

Author: Jesse Zhang <sen.zhang at windriver.com>
Date:   Wed Feb 20 03:12:02 2013 +0000

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)

Signed-off-by: Jesse Zhang <sen.zhang at windriver.com>
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 .../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



More information about the Openembedded-commits mailing list