Do not delete openolt logs so that the logs are persistent
on OLT reboots
Change-Id: I3e630bb99a6ebf9ceafca573db0d0bddfe11fc34
diff --git a/agent/scripts/init.d/openolt b/agent/scripts/init.d/openolt
index ef80b24..e9a448b 100755
--- a/agent/scripts/init.d/openolt
+++ b/agent/scripts/init.d/openolt
@@ -25,12 +25,11 @@
[ -r /etc/default/openolt ] && . /etc/default/openolt
[ -z "gRPC_interface" ] || APPARGS="--interface $gRPC_interface"
-# Include functions
+# Include functions
set -e
. /lib/lsb/init-functions
start() {
- rm -f /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