From da9c74917804a823bcf122b778aef273c3b64ede Mon Sep 17 00:00:00 2001 From: Yue Tao Date: Wed, 27 Nov 2013 15:55:43 +0800 Subject: cronie: fix init.d/crond status return value Signed-off-by: Yue Tao Signed-off-by: Richard Purdie --- meta/recipes-extended/cronie/cronie/crond.init | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'meta/recipes-extended') 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 -- cgit v1.2.3