keep the frappy server alive when nicos is restarted

Popen with start_new_session=True when not in run mode
This commit is contained in:
zolliker 2021-04-19 15:46:07 +02:00
parent e6ce5e8e34
commit 404288abbf

View File

@ -310,7 +310,8 @@ class ServiceManager:
proc = subprocess.Popen(cmd.split(), env=env)
proc.wait()
return
process = subprocess.Popen(cmd.split(), env=env, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
process = subprocess.Popen(cmd.split(), env=env, start_new_session=True,
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
if not port:
logger.info('%sstarted: %s', 're' if restart else '', cmd)
continue