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 authored and Richard Purdie committed 2013-11-29 09:52:57 +00:00
1 parent ebe51c79e9
commit 1897cce1fc
1 file changed
+2 -5
@@ -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