|
|
|
@ -62,8 +62,8 @@ class Kill(Actor):
|
|
|
|
|
def isValid(self,item):
|
|
|
|
|
return (item is not None) and (item in self.config)
|
|
|
|
|
def process(self,item):
|
|
|
|
|
cmd = "".join(["ps -eo pid,command|grep ",item,'|grep -E "^ {0,1}[0-9]+" -o|xargs kill -9'])
|
|
|
|
|
self.execute(cmd)
|
|
|
|
|
args = "".join(["-eo pid,command|grep ",item,'|grep -E "^ {0,1}[0-9]+" -o|xargs kill -9'])
|
|
|
|
|
self.execute(["ps",args])
|
|
|
|
|
#
|
|
|
|
|
# We need to make sure we can get assess the process on this server
|
|
|
|
|
#
|
|
|
|
|