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

Fix debian init #137

Merged
merged 2 commits into from
Jun 18, 2015
Merged

Fix debian init #137

merged 2 commits into from
Jun 18, 2015

Conversation

dizzythinks
Copy link
Contributor

When running the Debian init_script manually the do_start function would immediately exit with a failure on the first test in the for loop sequence even if the process was actually running.

for i in `seq 1 30`; do
    if ! start-stop-daemon --quiet --stop --test --pidfile $PIDFILE --exec $DAEMON --user $USER; then
        echo " FAIL: consul process died"
        return 2
    fi

Have altered this so it captures the return code and sleeps before proceeding through the for loop.

@solarkennedy
Copy link
Contributor

Ug. I hate init scripts.

solarkennedy added a commit that referenced this pull request Jun 18, 2015
@solarkennedy solarkennedy merged commit b632fef into voxpupuli:master Jun 18, 2015
@dizzythinks dizzythinks deleted the fix_debian_init branch June 18, 2015 06:53
@dizzythinks
Copy link
Contributor Author

They can be a pain it's true! :-)

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