Fix/ci kontin no internet vaatimus #34
Binary file not shown.
@@ -1,6 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
import http.server, json, sys, os, threading
|
||||
|
||||
# Daemonize: detach from parent process group
|
||||
if os.fork() > 0:
|
||||
sys.exit(0)
|
||||
os.setsid()
|
||||
if os.fork() > 0:
|
||||
sys.exit(0)
|
||||
|
||||
PORT = int(sys.argv[1])
|
||||
CONFIG = sys.argv[2]
|
||||
REQ_FILE = sys.argv[3]
|
||||
|
||||
Reference in New Issue
Block a user