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

docker::run init script should exit zero when already running #626

Open
chriskuehl opened this issue Jan 25, 2017 · 0 comments
Open

docker::run init script should exit zero when already running #626

chriskuehl opened this issue Jan 25, 2017 · 0 comments

Comments

@chriskuehl
Copy link

Currently the script exits 7 when the container is already running, but the Linux Standard Base specification specifies that start when the service is already running should be considered successful: https://refspecs.linuxbase.org/LSB_3.0.0/LSB-PDA/LSB-PDA/iniscrptact.html

Would you accept a patch to make it return zero instead of seven? The current behavior is causing us problems because the init system (systemd) tries to start the service, gets status seven, and considers it failed (and keeps trying to start it unsuccessfully forever).

chriskuehl added a commit to Yelp/garethr-docker that referenced this issue Jan 27, 2017
**These patches do not block upgrading to the latest garether-docker;
they can both be dropped.**

Both of these changes are only necessary because we are so far behind
upstream, which already has very good support for systemd.

The change to the exit code was proposed upstream anyway as it is an
overall good patch (init scripts are supposed to exit 0 when asked to
start and the service is already running):
garethr#626
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

No branches or pull requests

1 participant