close supervisord on fatal + full binary paths

This commit is contained in:
2018-12-15 11:26:20 +01:00
parent 08119e710a
commit 3afb801912
3 changed files with 31 additions and 3 deletions

23
manage-supervisord.py Normal file
View 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