Make evennia -i block until process is closed. Fixes #803.
This commit is contained in:
parent
538228af04
commit
a9480f9f64
1 changed files with 3 additions and 1 deletions
|
|
@ -1033,7 +1033,9 @@ def server_operation(mode, service, interactive, profiler):
|
||||||
GAMEDIR, TWISTED_BINARY, SERVER_LOGFILE,
|
GAMEDIR, TWISTED_BINARY, SERVER_LOGFILE,
|
||||||
PORTAL_LOGFILE, HTTP_LOGFILE])
|
PORTAL_LOGFILE, HTTP_LOGFILE])
|
||||||
# start the server
|
# start the server
|
||||||
Popen(cmdstr, env=getenv())
|
process = Popen(cmdstr, env=getenv())
|
||||||
|
if interactive:
|
||||||
|
process.wait()
|
||||||
|
|
||||||
elif mode == 'reload':
|
elif mode == 'reload':
|
||||||
# restarting services
|
# restarting services
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue