[Dev] Add some logs in deployer stop
This commit is contained in:
parent
89131ec9ee
commit
5ec38ad657
|
@ -542,6 +542,9 @@ main() (
|
||||||
fi
|
fi
|
||||||
pid="$(cat "${runner_pid}")"
|
pid="$(cat "${runner_pid}")"
|
||||||
rm --force "${runner_pid}"
|
rm --force "${runner_pid}"
|
||||||
|
|
||||||
|
# Kill runner process.
|
||||||
|
log_info "Kill runner process with pid '${pid}'."
|
||||||
if ! ps -p "${pid}"; then
|
if ! ps -p "${pid}"; then
|
||||||
fail "Runner process with pid='${pid}' is not running." \
|
fail "Runner process with pid='${pid}' is not running." \
|
||||||
"${err_runner_process_not_running}"
|
"${err_runner_process_not_running}"
|
||||||
|
@ -550,6 +553,9 @@ main() (
|
||||||
fail "Cannot kill runner process: ${output}." \
|
fail "Cannot kill runner process: ${output}." \
|
||||||
"${err_runner_process_not_killed}"
|
"${err_runner_process_not_killed}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove runner sock file.
|
||||||
|
log_info "Remove runner sock at '${runner_sock}'."
|
||||||
rm --force "${runner_sock}"
|
rm --force "${runner_sock}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue