main#

todo: docstring

class acore_server_bootstrap.cli.main.Command[source]#

acore server bootstrap command line interface.

hello()[source]#

Print welcome message.

bootstrap_as_sudo()[source]#

Bootstrap a new EC2 server, run automations that requires sudo.

bootstrap()[source]#

Bootstrap a new EC2 server, run automations that doesn’t require sudo.

disable_ubuntu_auto_upgrade()[source]#

Disable Ubuntu auto upgrade (don’t upgrade mysql).

setup_ec2_run_on_restart_script()[source]#

Setup cloud init script to run on restart.

create_database()[source]#

Create the database user for game server and three initial databases.

create_user()[source]#

Create the database user for game server.

update_realmlist()[source]#

Update ‘acore_auth.realmlist.address’.

configure_db()[source]#

Configure the database for game server.

apply_authserver_conf()[source]#

Update the authserver.conf.

apply_worldserver_conf()[source]#

Update the worldserver.conf.

apply_mod_lua_engine_conf()[source]#

Update the mod_LuaEngine.conf.

apply_server_config()[source]#

Update the authserver.conf, worldserver.conf and mod_LuaEngine.conf.

run_check_server_status_cron_job()[source]#

Run the “check server status” cron job in screen session.

stop_check_server_status_cron_job()[source]#

Stop the “check server status” cron job.

run_server()[source]#

Run the game server in screen session.

list_session()[source]#

List all screen sessions.

enter_worldserver()[source]#

Enter the worldserver screen session.

stop_server()[source]#

Stop the game server.