[VOL-2039]: PON Schedulers fail to create on the OLT
Increase the sleep time in the openolt and dev_mgmt_daemon scripts
to give enough time for BAL to be ready before openolt can configure
the BAL.
Change-Id: I8fe319456551b43e91db1f0c0649f8acaac0a41c
diff --git a/agent/scripts/init.d/dev_mgmt_daemon b/agent/scripts/init.d/dev_mgmt_daemon
index 340fe53..9e5a5a3 100755
--- a/agent/scripts/init.d/dev_mgmt_daemon
+++ b/agent/scripts/init.d/dev_mgmt_daemon
@@ -25,7 +25,7 @@
start() {
/opt/bcm68620/svk_init.sh
- sleep 2
+ sleep 10
printf "Starting '$NAME'... "
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$APPDIR
start-stop-daemon --verbose --start --chuid "$USER:$GROUP" --background --no-close --chdir "$APPDIR" --exec "$APPBIN" -- $APPARGS 2>&1 || true
diff --git a/agent/scripts/init.d/openolt b/agent/scripts/init.d/openolt
index 69823c2..1db4fbb 100755
--- a/agent/scripts/init.d/openolt
+++ b/agent/scripts/init.d/openolt
@@ -25,7 +25,9 @@
start() {
printf "Starting '$NAME'... "
- sleep 60
+ # TODO: If openolt agent has a way to figure out progamatically
+ # if the BAL is ready, the below timer may not be needed.
+ sleep 120
rm -f /var/log/$NAME.log
touch /var/log/$NAME.log
start-stop-daemon --verbose --start --chuid "$USER:$GROUP" --background --no-close --make-pidfile --pidfile /var/run/$NAME.pid --chdir "$APPDIR" --exec "$APPBIN" -- $APPARGS < /dev/tty1 >> /var/log/$NAME.log 2>&1 || true