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:
parent
e6ce5e8e34
commit
404288abbf
3
base.py
3
base.py
@ -310,7 +310,8 @@ class ServiceManager:
|
|||||||
proc = subprocess.Popen(cmd.split(), env=env)
|
proc = subprocess.Popen(cmd.split(), env=env)
|
||||||
proc.wait()
|
proc.wait()
|
||||||
return
|
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:
|
if not port:
|
||||||
logger.info('%sstarted: %s', 're' if restart else '', cmd)
|
logger.info('%sstarted: %s', 're' if restart else '', cmd)
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user