Used new management command checksocket to check if Toaster can listen on address:port.
[YOCTO #8775] Signed-off-by: Ed Bartosh <[email protected]> --- bitbake/bin/toaster | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 1c1e029..f43bcb1 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 -- 2.1.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
