[Core] Fix stdout object when stopping daemon
This commit is contained in:
parent
64c67a07dd
commit
f036c1a6c5
|
@ -119,9 +119,11 @@ def start_daemon(skip_start=False):
|
||||||
interface=options.ui_interface,
|
interface=options.ui_interface,
|
||||||
port=options.port,
|
port=options.port,
|
||||||
read_only_config_keys=options.read_only_config_keys.split(","))
|
read_only_config_keys=options.read_only_config_keys.split(","))
|
||||||
if not skip_start:
|
if skip_start:
|
||||||
|
return daemon
|
||||||
|
else:
|
||||||
daemon.start()
|
daemon.start()
|
||||||
return daemon
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
log.exception(ex)
|
log.exception(ex)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue