|
|
|
@ -581,7 +581,7 @@ class HealthCheck(object):
@@ -581,7 +581,7 @@ class HealthCheck(object):
|
|
|
|
|
result = 'success' |
|
|
|
|
|
|
|
|
|
if int(pid) < 3: |
|
|
|
|
return 'Failed to kill %s, pid: %s '% (program, exitcode) |
|
|
|
|
return 'Failed to kill %s, pid: %s '% (program, pid) |
|
|
|
|
|
|
|
|
|
cmd = "kill -9 %s" % pid |
|
|
|
|
exitcode, stdout, stderr = shell(cmd) |
|
|
|
@ -771,6 +771,12 @@ class HealthCheck(object):
@@ -771,6 +771,12 @@ class HealthCheck(object):
|
|
|
|
|
t = threading.Thread(target=self.check, args=(item,)) |
|
|
|
|
threads.append(t) |
|
|
|
|
for t in threads: |
|
|
|
|
try: |
|
|
|
|
t.setDaemon(True) |
|
|
|
|
t.start() |
|
|
|
|
except Exception, e: |
|
|
|
|
print('Exception in ' + t.getName() + ' (catch by main)') |
|
|
|
|
print(t.exc_traceback) |
|
|
|
|
t.setDaemon(True) |
|
|
|
|
t.start() |
|
|
|
|
|
|
|
|
|