提交 9db07576 编写于 作者: M Medya Ghazizadeh 提交者: Sharif Elgamal

kill hung procc with sudo and release port (#4882)

上级 87802b2c
......@@ -161,9 +161,12 @@ kprocs=$(pgrep kubectl || true)
if [[ "${kprocs}" != "" ]]; then
echo "error: killing hung kubectl processes ..."
ps -f -p ${kprocs} || true
${SUDO_PREFIX} kill ${kprocs} || true
sudo -E kill ${kprocs} || true
fi
# clean up none drivers binding on 8443
lsof -P | grep ':8443' | awk '{print $2}' | xargs sudo -E kill -9
function cleanup_stale_routes() {
local show="netstat -rn -f inet"
local del="sudo route -n delete"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册