Skip to content

Commit

Permalink
Merge pull request #129 from jhmartin/128-kill_on_shutdown
Browse files Browse the repository at this point in the history
Force-kill on /etc/init.d/consul stop. Fixes #128
  • Loading branch information
johnbellone committed Feb 26, 2015
2 parents 6e006f3 + 2ea1ae2 commit 60e3072
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/default/consul-init.erb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ case "$1" in
done
echo

if is_running; then
kill -9 `get_pid`
fi

if is_running; then
echo "$NAME not stopped; may still be shutting down or shutdown may have failed"
exit 1
Expand Down

0 comments on commit 60e3072

Please sign in to comment.