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-27 12:00:05 +0000 |
commit | da9c74917804a823bcf122b778aef273c3b64ede (patch) | |
tree | 787902f9afecb47506d73a8f134538e67b6352ef /meta/recipes-extended | |
parent | 5b3c4863665eabf7750ff1bdd975ea1f4772006b (diff) | |
download | openembedded-core-da9c74917804a823bcf122b778aef273c3b64ede.tar.gz openembedded-core-da9c74917804a823bcf122b778aef273c3b64ede.tar.bz2 openembedded-core-da9c74917804a823bcf122b778aef273c3b64ede.zip |
cronie: fix init.d/crond status return value
Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-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 fi ;; status) - if [ -n "`/bin/pidof $CROND`" ] ; then - echo "crond is running." - else - echo "crond is not running." - fi + status crond + exit $? ;; restart) $0 stop && sleep 1 && $0 start |