Skip to content

Commit

Permalink
prevent process restarts when sig term received
Browse files Browse the repository at this point in the history
  • Loading branch information
David Kutalek authored and David Kutalek committed Jun 11, 2024
1 parent f252caa commit 7829148
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 7829148

Please sign in to comment.