[x] The code changes are reflected in the documentation README.md.
The change adds TINI, an init manager to the docker container, this ensures that when docker stop is called, the signal gets properly propagated to the erlang process, right now only the shell script got the signal and it didn't do anything about it(resulting in a sigkill after a timeout).
With this change the erlang process will get the SIGTERM and properly shutdown.(Needs to be handled inside emqttd)
TINI was used over other init systems because it's extremely small and does the job well. (Docker uses this if you use the --init option).
The change adds TINI, an init manager to the docker container, this ensures that when docker stop is called, the signal gets properly propagated to the erlang process, right now only the shell script got the signal and it didn't do anything about it(resulting in a sigkill after a timeout).
With this change the erlang process will get the SIGTERM and properly shutdown.(Needs to be handled inside emqttd)
TINI was used over other init systems because it's extremely small and does the job well. (Docker uses this if you use the
--init
option).