Expand launcher with connections option and fixes

This commit is contained in:
Griatch 2019-06-27 23:26:56 +02:00
parent 670bfe3641
commit 3c7b3938ed

View file

@ -473,19 +473,20 @@ SERVER_INFO = \
ARG_OPTIONS = \ ARG_OPTIONS = \
"""Actions on installed server. One of: """Actions on installed server. One of:
start - launch server+portal if not running start - launch server+portal if not running
reload - restart server in 'reload' mode reload - restart server in 'reload' mode
stop - shutdown server+portal stop - shutdown server+portal
reboot - shutdown server+portal, then start again reboot - shutdown server+portal, then start again
reset - restart server in 'shutdown' mode reset - restart server in 'shutdown' mode
istart - start server in foreground (until reload) istart - start server in foreground (until reload)
ipstart - start portal in foreground ipstart - start portal in foreground
sstop - stop only server sstop - stop only server
kill - send kill signal to portal+server (force) kill - send kill signal to portal+server (force)
skill - send kill signal only to server skill - send kill signal only to server
status - show server and portal run state status - show server and portal run state
info - show server and portal port info info - show server and portal port info
menu - show a menu of options menu - show a menu of options
connections - show connection wizard
Others, like migrate, test and shell is passed on to Django.""" Others, like migrate, test and shell is passed on to Django."""
# ------------------------------------------------------------ # ------------------------------------------------------------
@ -2101,9 +2102,12 @@ def main():
elif option == "info": elif option == "info":
query_info() query_info()
elif option == "start": elif option == "start":
init_game_directory(CURRENT_DIR, check_db=True)
error_check_python_modules() error_check_python_modules()
start_evennia(args.profiler, args.profiler) start_evennia(args.profiler, args.profiler)
elif option == "istart": elif option == "istart":
init_game_directory(CURRENT_DIR, check_db=True)
error_check_python_modules()
start_server_interactive() start_server_interactive()
elif option == "ipstart": elif option == "ipstart":
start_portal_interactive() start_portal_interactive()