Skip to content

Commit

Permalink
Add '-9' to pkill command while killing the previous MistUtilLoad pro…
Browse files Browse the repository at this point in the history
…cess (#1324)
  • Loading branch information
leszko authored Jul 18, 2024
1 parent 33bd3ab commit 5865746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion balancer/mist/mist_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (b *MistBalancer) formatNodeAddress(server string) string {
// killPreviousBalancer cleans up the previous MistUtilLoad process if it exists.
// It uses pkill to kill the process.
func (b *MistBalancer) killPreviousBalancer(ctx context.Context) {
cmd := exec.CommandContext(ctx, "pkill", "-f", "MistUtilLoad")
cmd := exec.CommandContext(ctx, "pkill", "-9", "-f", "MistUtilLoad")
err := cmd.Run()
if err != nil {
glog.V(6).Infof("Killing MistUtilLoad failed, most probably it was not running, err=%v", err)
Expand Down

0 comments on commit 5865746

Please sign in to comment.