[VOL-2225]Migration to BAL3.2.3.2
- Updates to test files to compile for BAL3.2.3.2
- Addressed various comments
- Test with two ONUs on same PON port.
- EAP/HSIA/DHCP working
- Following test cases working
1. Disable/Enable/Reboot ONU
2. Disable/Enable OLT
3. ONU disable -> subscriber unprovision ->
enable -> subscriber provision
- Commented out UTs for FlowAdd and FlowRemove and
will be addressed as part of another commit
- Fix tm_qmp creation for BAL3.2 (needed 1Tcont multi gem)
- Re-organize code after review comments
- Bump version to 2.1.0 (support for ACL and multicast group config)
Change-Id: I4245d14bba8878fdde6ee361ad54060068de205f
diff --git a/agent/scripts/init.d/openolt b/agent/scripts/init.d/openolt
index 70594b1..585109d 100755
--- a/agent/scripts/init.d/openolt
+++ b/agent/scripts/init.d/openolt
@@ -24,9 +24,9 @@
. /lib/lsb/init-functions
start() {
- printf "Starting '$NAME'... "
rm -f /var/log/$NAME.log
- touch /var/log/$NAME.log
+ printf "Starting '$NAME'... "
+ export USER=$USER
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
printf "done\n"
}
@@ -49,7 +49,6 @@
sleep 0.5
done
[ -z `cat /var/run/$NAME.pid 2>/dev/null` ] || rm /var/run/$NAME.pid
- rm -f /var/log/$NAME.log
printf "done\n"
}