Removed logfile output for subprocess calling to avoid zombification

This commit is contained in:
Krateng 2020-01-10 04:02:43 +01:00
parent 2ae293a889
commit 95534f0f4a
1 changed files with 2 additions and 3 deletions

View File

@ -104,9 +104,8 @@ def getInstanceSupervisor():
def start():
setup()
try:
with open(datadir("logs/stderr.log"),"w") as logf:
p = subprocess.Popen(["python3","-m","maloja.server"],stdout=subprocess.DEVNULL,stderr=logf)
sp = subprocess.Popen(["python3","-m","maloja.supervisor"],stdout=subprocess.DEVNULL,stderr=logf)
p = subprocess.Popen(["python3","-m","maloja.server"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
sp = subprocess.Popen(["python3","-m","maloja.supervisor"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
print(col["green"]("Maloja started!") + " PID: " + str(p.pid))
from doreah import settings