close supervisord on fatal + full binary paths
This commit is contained in:
23
manage-supervisord.py
Normal file
23
manage-supervisord.py
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/python
|
||||
import sys
|
||||
import os
|
||||
import signal
|
||||
|
||||
def write_stdout(s):
|
||||
sys.stdout.write(s)
|
||||
sys.stdout.flush()
|
||||
|
||||
def write_stderr(s):
|
||||
sys.stderr.write(s)
|
||||
sys.stderr.flush()
|
||||
|
||||
def main():
|
||||
while 1:
|
||||
write_stdout('READY\n')
|
||||
line = sys.stdin.readline()
|
||||
os.kill(1, signal.SIGTERM)
|
||||
write_stdout('RESULT 2\nOK')
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
import sys
|
||||
Reference in New Issue
Block a user