mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user