From: Faiyaz Ahmed Date: Thu, 29 Nov 2007 20:06:03 +0000 (+0000) Subject: kill NM processes running in a slice. X-Git-Tag: 2.2-02~5 X-Git-Url: http://git.onelab.eu/?p=mom.git;a=commitdiff_plain;h=aeae484ad5c2acc1cd7a03083c091ecd8647ae85 kill NM processes running in a slice. --- diff --git a/pl_mop.sh b/pl_mop.sh index 80fcb41..f544223 100755 --- a/pl_mop.sh +++ b/pl_mop.sh @@ -203,10 +203,22 @@ kill_duplicate_ssh() { done } +kill_nm_inslice(){ + pids=$(vps aux | awk '$1 != "root" && $14 == "/usr/share/NodeManager/nm.py" {print $2}') + for pid in $pids ; do + line=$(vps aux | grep $pid) + echo Killing PID $pid + echo $line + kill -9 $pid + done +} + # XXX kill zombie slices # XXX reboot if boot state changes +run kill_nm_inslice + run fix_vservers run fix_etc_shadow