Fix to write dev_mgmt_daemon log into /var/log/dev_mgmt_daemon.log
instead of /var/log/syslog.
This was fixed in https://gerrit.opencord.org/#/c/16904/ but again
got overwritten with https://gerrit.opencord.org/#/c/16920/.
Change-Id: I4caeaa3dbafee9965a72cb810df58b2574020feb
diff --git a/VERSION b/VERSION
index 7ec1d6d..7c7e096 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.1.0
+2.1.1-dev
diff --git a/agent/scripts/init.d/dev_mgmt_daemon b/agent/scripts/init.d/dev_mgmt_daemon
index 63c61a7..7637c6d 100755
--- a/agent/scripts/init.d/dev_mgmt_daemon
+++ b/agent/scripts/init.d/dev_mgmt_daemon
@@ -14,11 +14,11 @@
PATH="/broadcom:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
APPDIR="/broadcom"
APPBIN="dev_mgmt_daemon"
-APPARGS="-pcie -syslog"
+APPARGS="-pcie -d"
USER="root"
GROUP="root"
-# Include functions
+# Include functions
set -e
. /lib/lsb/init-functions
@@ -26,6 +26,7 @@
/opt/bcm68620/svk_init.sh
sleep 10
printf "Starting '$NAME'... "
+ touch /var/log/$NAME.log
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$APPDIR
export USER=$USER
start-stop-daemon --verbose --start --chuid "$USER:$GROUP" --background --no-close --chdir "$APPDIR" --exec "$APPBIN" -- $APPARGS < /dev/tty1 >> /var/log/$NAME.log 2>&1 || true