aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts
diff options
context:
space:
mode:
authorJesse Zhang <sen.zhang@windriver.com>2013-02-20 03:12:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-30 20:54:45 +0100
commitd9d4fdc769dfe6bf9838f5c5f3189a80f0e3cf90 (patch)
treea5b13fa15ce60bba94a19a9727a766ff924845d9 /meta/recipes-core/initscripts
parent66224a0fbd4056d954cbf1db3a8b91d06a638b80 (diff)
downloadopenembedded-core-contrib-d9d4fdc769dfe6bf9838f5c5f3189a80f0e3cf90.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. 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/initscripts')
-rw-r--r--meta/recipes-core/initscripts/initscripts-1.0/functions1
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 944e3a59b05..8e15762f8a9 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