Trying to run Eureka (Netflix) under Rancher - resolving issues

Sorry, the last part makes some sense, but I don’t completely understand.

I’m running the java jar under the script. If the jar finishes/fails then the whole thing ends and so does the container. What else does Docker do with the exec process? Does it still run entrypoint before doing the exec?