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