mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Ensure old k3s processes are clean up
Before starting up new k3s instance, make sure old ones are gone. To fix issue #7128 Signed-off-by: Liyi Meng <meng.mobile@gmail.com>
This commit is contained in:
parent
01ea3ff27b
commit
13d07435fe
@ -819,6 +819,7 @@ depend() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start_pre() {
|
start_pre() {
|
||||||
|
(ps -ef | grep -E "k3s .*(server|agent)" | grep -E -v "(init|grep|channelserver|supervise-daemon)" | awk '{print $2}' | xargs kill 2>/dev/null) || true
|
||||||
rm -f /tmp/k3s.*
|
rm -f /tmp/k3s.*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user