fix: debug trace exact shutdown commands
This commit is contained in:
parent
16a11913b5
commit
dcec147fdb
|
|
@ -100,15 +100,15 @@ case $DOCKER_MODE in
|
||||||
|
|
||||||
function shutdown_act() {
|
function shutdown_act() {
|
||||||
log INFO "Stopping act_runner..."
|
log INFO "Stopping act_runner..."
|
||||||
kill -SIGTERM "$act_runner_pid" || true
|
(set -x; kill -SIGTERM "$act_runner_pid" || true)
|
||||||
}
|
}
|
||||||
|
|
||||||
function shutdown_docker() {
|
function shutdown_docker() {
|
||||||
log INFO "Stopping docker engine..."
|
log INFO "Stopping docker engine..."
|
||||||
if [[ $DOCKER_MODE == "dind-rootless" ]]; then
|
if [[ $DOCKER_MODE == "dind-rootless" ]]; then
|
||||||
kill -SIGTERM "$DOCKER_PID"
|
(set -x; kill -SIGTERM "$DOCKER_PID")
|
||||||
else
|
else
|
||||||
sudo service docker stop
|
(set -x; sudo service docker stop)
|
||||||
fi
|
fi
|
||||||
while [[ -e /proc/$DOCKER_PID ]]; do
|
while [[ -e /proc/$DOCKER_PID ]]; do
|
||||||
log INFO "Waiting for docker engine to shutdown..."
|
log INFO "Waiting for docker engine to shutdown..."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue