#/bin/sh
echo "Executing 'java $JAVA_OPTS $GREENMAIL_OPTS -jar greenmail-standalone.jar' ..."
java $JAVA_OPTS $GREENMAIL_OPTS -jar greenmail-standalone.jar

#/bin/sh
echo "Executing 'java $JAVA_OPTS $GREENMAIL_OPTS -jar greenmail-standalone.jar' ..."
exec java $JAVA_OPTS $GREENMAIL_OPTS -jar greenmail-standalone.jar

Use exec to replace bash process with java process
Use exec to replace bash process with java process
