I just checked, and apparently I am using 2.0.3.
Joel Haggar suggested I add 'cd ${PRGDIR}' below line 13 in the ma-start.sh file. Now it works. He said 'this will be included in all new releases of Mango'
$ **cat /opt/mango/ma-start.sh
**```
#!/bin/sh
PRGDIR=dirname "$0"
#log output
exec >${PRGDIR}/logs/ma.out 2>${PRGDIR}/logs/ma.err
cd ${PRGDIR}
[ -z "$MA_HOME" ] && MA_HOME=cd "$PRGDIR" >/dev/null; pwd
if [ ! -r "$MA_HOME"/ma-start.sh ]; then
echo The MA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
exit 1
fi
MA_CP=$MA_HOME/overrides/classes
MA_CP=$MA_CP:$MA_HOME/classes
MA_CP=$MA_CP:$MA_HOME/overrides/properties
for f in $MA_HOME/lib/*.jar
do
MA_CP=$MA_CP:$f
done
if [ -z "$JAVA_HOME" ]; then
EXECJAVA=java
else
EXECJAVA=$JAVA_HOME/bin/java
fi
LOOP_EXIT=false
while [ $LOOP_EXIT = false ]; do
$EXECJAVA $JPDA -server -cp $MA_CP
-Dma.home=$MA_HOME
-Djava.library.path=$MA/lib:$PATH
com.serotonin.m2m2.Main
done