Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using exec to launch consul-template, in order to take PID 1. #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

@lalarsson
Copy link
Contributor

lalarsson commented Jun 7, 2016

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

@lalarsson
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