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>
This commit is contained in:
Yue Tao 2013-11-27 15:55:43 +08:00 committed by Richard Purdie
parent ebe51c79e9
commit 1897cce1fc
1 changed files with 2 additions and 5 deletions

View File

@ -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