Skip to content

Commit

Permalink
Merge pull request #16 from joinhandshake/davkutalek/prevent-restarts
Browse files Browse the repository at this point in the history
[CE-4035] Prevent process restarts when sig term received
  • Loading branch information
davkutalek authored Jun 11, 2024
2 parents f252caa + 7829148 commit 4b79ff9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ fi

ensure_stopped() {
log 143
echo '+++ :warning: Signal received, stopping container gracefully'
# docker stop "${container_name}" || true
compose_cleanup ${run_service}
echo '+++ :warning: Signal received, stopping container'
docker stop "${container_name}" || true
# compose_cleanup ${run_service} # This works but causes the docker process time to restart before the container dies. This must be a docker setting somewhere causing the restart, but I can't find it
echo '~~~ Last log lines that may be missing above (if container was not already removed)'
docker logs "${container_name}" || true
exit 143
Expand Down

0 comments on commit 4b79ff9

Please sign in to comment.