Skip to content

Conversation

eesprit
Copy link

@eesprit eesprit commented Mar 3, 2016

This tiny modification makes consul-template takes PID 1 over the initial bash process, which allow a better signal management (docker stop/kill will be forwarded to consul-template wich will andle it nicely and stop the "runner" - aka haproxy).

Without this, the docker stop signal (SIGTERM) is not forwarded to consul-template by bash, and the process is killed (SIGKILL) by docker after 10 seconds (default timeout), which is not really clean.

@lalarsson87
Copy link
Contributor

lalarsson87 commented Jun 7, 2016

@eesprit I've checked your changes locally (with updates towards master) and it looks ok. @stevendborrelli This change looks ok.

@lalarsson87
Copy link
Contributor

@eesprit @stevendborrelli Change is present in master so there's no need for this PR anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants