In rabbitmq-start, we starts rabbitmq-server with exec, which is correct if the command we starts handles SIGTERM. rabbitmq-server is another shell script, that does some logic and then starts rabbitmq itself. However, this time, it is not using exec, hence, Dockers signals wont ever reach the rabbitmq server itself.