@@ -0,0 +1,579 @@
+%22%22%22Script that kills apache processes that are likely in-error%0A%0AThis appears to be due to some proxy / mod-wsgi issue that I am not clever%0Aenough to fix.%0A%22%22%22%0Afrom __future__ import print_function%0A%0Aimport psutil%0A%0A# CPU time in seconds to kill%0ATHRESHOLD = 86400%0A%0A%0Adef main():%0A    %22%22%22Go Main%22%22%22%0A    for proc in psutil.process_iter():%0A        if proc.username() != 'apache':%0A            continue%0A        vals = proc.cpu_times()%0A        if vals%5B0%5D %3E THRESHOLD:%0A            # print(%22%25s %25s%22 %25 (proc.pid, vals%5B0%5D))%0A            proc.send_signal(9)%0A%0A%0Aif __name__ == '__main__':%0A    main()%0A

add apache process killer for processes stuck in infinite proxy loop