Decrease software service init delay for Simplex
The DELAY_SEC variable in the software init script controls how long the service waits for an active controller to respond before proceeding. The default is 120 seconds. On simplex (AIO-SX) systems, there is a possibility that this could result in an unnecessary 2-minute delay during reboot or unlock operations. This update significantly reduces the timeout delay on simplex systems without affecting duplex systems. Test-Plan: PASS: Verify build and install on AIO-SX PASS: Verify build and install on AIO-DX PASS: Verify unlock of AIO-SX is not delayed by software timeout PASS: Verify software still uses 120s timeout on AIO-DX Closes-bug: 2118354 Change-Id: I5a56b9d750d4607b6df7ede65e7a2370b141deee Signed-off-by: Matheus Guilhermino <mmachado@windriver.com>
This commit is contained in:

committed by
Matheus Machado Guilhermino

parent
4185ad281a
commit
301e2e5cae
@@ -80,7 +80,15 @@ fi
|
||||
# If the management interface is bonded, it may take some time
|
||||
# before communications can be properly setup.
|
||||
# Allow up to $DELAY_SEC seconds to reach controller.
|
||||
DELAY_SEC=120
|
||||
|
||||
if [ "${system_mode}" = "simplex" ]; then
|
||||
# Make the delay for simplex systems smaller.
|
||||
# There is no active controller during reboot.
|
||||
DELAY_SEC=10
|
||||
else
|
||||
DELAY_SEC=120
|
||||
fi
|
||||
|
||||
START=`date +%s`
|
||||
FOUND=0
|
||||
while [ $(date +%s) -lt $(( ${START} + ${DELAY_SEC} )) ]; do
|
||||
|
Reference in New Issue
Block a user