mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 21:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
337e25aac5
commit
7945add420
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user