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

Fixed dead service containers not being restarted on docker_container :run #240

Conversation

jperville
Copy link
Contributor

I just stumbled on @jochenseeber 's #235 issue when investigating why some containers were not being restarted after running chef-client on my production server.

In short, when a container:

  1. is deployed as a service (upstart or other) and
  2. is not running (eg. because I have restarted the docker daemon without having a container restart policy set, or because I have previously stopped the service)

Then the next chef-run will leave my container down without trying to restart it.

This modest PR should easily fix the issue.

tduffield pushed a commit that referenced this pull request Nov 21, 2014
…service-when-container-down

Fixed dead service containers not being restarted on docker_container :run
@tduffield tduffield merged commit 24f1dcc into sous-chefs:master Nov 21, 2014
@jperville jperville deleted the container-action-run-restarts-service-when-container-down branch September 21, 2015 15:53
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