Graceful Shutdown of process when ran from entrypoint script

This has been solved - see this comment thread for steps: Automatic Gracefull DOCKER container SHUTDOWN on SYSTEM Restart/Shutdown (SYSTEM OS) - #7 by owqc

Hope someone finds this useful