Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e39f29ca
Commit
e39f29ca
authored
May 11, 2015
by
Kenjiro Nakayama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Terminate child process by cleanup() in local-up-cluster.sh
parent
738f403e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
local-up-cluster.sh
hack/local-up-cluster.sh
+5
-5
No files found.
hack/local-up-cluster.sh
View file @
e39f29ca
...
...
@@ -109,17 +109,17 @@ cleanup_dockerized_kubelet()
cleanup
()
{
echo
"Cleaning up..."
[[
-n
"
${
APISERVER_PID
-
}
"
]]
&&
sudo kill
"
${
APISERVER_PID
}
"
[[
-n
"
${
CTLRMGR_PID
-
}
"
]]
&&
sudo kill
"
${
CTLRMGR_PID
}
"
[[
-n
"
${
APISERVER_PID
-
}
"
]]
&&
sudo kill
$(
ps
--ppid
=
${
APISERVER_PID
}
--pid
=
${
APISERVER_PID
}
|
cut
-d
' '
-f1
)
[[
-n
"
${
CTLRMGR_PID
-
}
"
]]
&&
sudo kill
$(
ps
--ppid
=
${
CTLRMGR_PID
}
--pid
=
${
CTLRMGR_PID
}
|
cut
-d
' '
-f1
)
if
[[
-n
"
$DOCKERIZE_KUBELET
"
]]
;
then
cleanup_dockerized_kubelet
else
[[
-n
"
${
KUBELET_PID
-
}
"
]]
&&
sudo kill
"
${
KUBELET_PID
}
"
[[
-n
"
${
KUBELET_PID
-
}
"
]]
&&
sudo kill
$(
ps
--ppid
=
${
KUBELET_PID
}
--pid
=
${
KUBELET_PID
}
|
cut
-d
' '
-f1
)
fi
[[
-n
"
${
PROXY_PID
-
}
"
]]
&&
sudo kill
"
${
PROXY_PID
}
"
[[
-n
"
${
SCHEDULER_PID
-
}
"
]]
&&
sudo kill
"
${
SCHEDULER_PID
}
"
[[
-n
"
${
PROXY_PID
-
}
"
]]
&&
sudo kill
$(
ps
--ppid
=
${
PROXY_PID
}
--pid
=
${
PROXY_PID
}
|
cut
-d
' '
-f1
)
[[
-n
"
${
SCHEDULER_PID
-
}
"
]]
&&
sudo kill
$(
ps
--ppid
=
${
SCHEDULER_PID
}
--pid
=
${
SCHEDULER_PID
}
|
cut
-d
' '
-f1
)
[[
-n
"
${
ETCD_PID
-
}
"
]]
&&
kube::etcd::stop
[[
-n
"
${
ETCD_DIR
-
}
"
]]
&&
kube::etcd::clean_etcd_dir
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment