Skip to content

Commit dcec147

Browse files
committed
fix: debug trace exact shutdown commands
1 parent 16a1191 commit dcec147

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

image/run_runner.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ case $DOCKER_MODE in
100100

101101
function shutdown_act() {
102102
log INFO "Stopping act_runner..."
103-
kill -SIGTERM "$act_runner_pid" || true
103+
(set -x; kill -SIGTERM "$act_runner_pid" || true)
104104
}
105105

106106
function shutdown_docker() {
107107
log INFO "Stopping docker engine..."
108108
if [[ $DOCKER_MODE == "dind-rootless" ]]; then
109-
kill -SIGTERM "$DOCKER_PID"
109+
(set -x; kill -SIGTERM "$DOCKER_PID")
110110
else
111-
sudo service docker stop
111+
(set -x; sudo service docker stop)
112112
fi
113113
while [[ -e /proc/$DOCKER_PID ]]; do
114114
log INFO "Waiting for docker engine to shutdown..."

0 commit comments

Comments
 (0)