Select the types of activity you want to include in your feed.
unikernels: synchronize firewall cram startup
Wait for the appliance startup marker, which follows frame-socket acquisition, before running the LAN peer. Surface the firewall log if the guest exits during startup.
···1212unikernel.exe --frame client=5801:5802 --frame uplink=5803:5804 >firewall.log 2>&1 &
1313fw_pid=$!
1414trap 'kill "$fw_pid" 2>/dev/null; wait "$fw_pid" 2>/dev/null' EXIT
1515-# Give the appliance a moment to bind its frame sockets before driving it.
1616-sleep 1
1515+# The marker is printed after both frame devices have been acquired and their
1616+# sockets bound. Do not drive the peer against an arbitrary startup delay.
1717+until grep -q "firewall: forwarding" firewall.log 2>/dev/null; do
1818+ if ! kill -0 "$fw_pid" 2>/dev/null; then
1919+ cat firewall.log >&2
2020+ exit 1
2121+ fi
2222+ sleep 0.05
2323+done
2424+sleep 0.1