mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
bitbake: toaster: check if address:port is in use
Used new management command checksocket to check if Toaster can listen on address:port. [YOCTO #8775] (Bitbake rev: 8a306ffe5a3642fe833c875362a183096a39f641) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
847b93596d
commit
8e4acacb53
@@ -309,6 +309,11 @@ fi
|
|||||||
|
|
||||||
echo "The system will $CMD."
|
echo "The system will $CMD."
|
||||||
|
|
||||||
|
# check if addr:port is not in use
|
||||||
|
if [ "$CMD" == 'start' ]; then
|
||||||
|
python $BBBASEDIR/lib/toaster/manage.py checksocket "0.0.0.0:$WEB_PORT" || return 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Make sure it's safe to run by checking bitbake lock
|
# Make sure it's safe to run by checking bitbake lock
|
||||||
|
|
||||||
lock=1
|
lock=1
|
||||||
|
|||||||
Reference in New Issue
Block a user