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:
Ed Bartosh 2015-12-17 16:48:47 +00:00 committed by Richard Purdie
parent 847b93596d
commit 8e4acacb53
1 changed files with 5 additions and 0 deletions

View File

@ -309,6 +309,11 @@ fi
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
lock=1