From: Ed Bartosh Date: Thu, 17 Dec 2015 16:48:47 +0000 (+0000) Subject: bitbake: toaster: check if address:port is in use X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e4acacb53ef3af83cb67676dbca8471ca5911e5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 1c1e0298383..f43bcb167ec 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster @@ -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