diff options
author | Yue Tao <Yue.Tao@windriver.com> | 2013-11-27 15:55:43 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-29 09:52:57 +0000 |
commit | 1897cce1fc1ebd5a79b69f86e34f8c222ccd2751 (patch) | |
tree | 5e5b02ad758ed701015791081b95ca04eae9d534 | |
parent | ebe51c79e9d307e43a42a66b67ced87d092ce39f (diff) | |
download | poky-1897cce1fc1ebd5a79b69f86e34f8c222ccd2751.tar.gz |
cronie: fix init.d/crond status return value
(From OE-Core rev: da9c74917804a823bcf122b778aef273c3b64ede)
Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | meta/recipes-extended/cronie/cronie/crond.init | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/recipes-extended/cronie/cronie/crond.init b/meta/recipes-extended/cronie/cronie/crond.init index c8dffef89a..53b8514caa 100755 --- a/meta/recipes-extended/cronie/cronie/crond.init +++ b/meta/recipes-extended/cronie/cronie/crond.init | |||
@@ -43,11 +43,8 @@ case "$1" in | |||
43 | fi | 43 | fi |
44 | ;; | 44 | ;; |
45 | status) | 45 | status) |
46 | if [ -n "`/bin/pidof $CROND`" ] ; then | 46 | status crond |
47 | echo "crond is running." | 47 | exit $? |
48 | else | ||
49 | echo "crond is not running." | ||
50 | fi | ||
51 | ;; | 48 | ;; |
52 | restart) | 49 | restart) |
53 | $0 stop && sleep 1 && $0 start | 50 | $0 stop && sleep 1 && $0 start |