This module implements the main Evennia server process, the core of the game engine.
This module should be started with the ‘twistd’ executable since it sets up all the networking features. (this is done automatically by game/evennia.py).
The main Portal server handler. This object sets up the database and tracks and interlinks all the twisted network services that make up Portal.
Setup the server.
application (Application) – An instantiated Twisted application
Return the Portal info, for display.
Shuts down the server from inside it.
_reactor_stopping (bool, optional) – This is set if server is already in the process of shutting down; in this case we don’t need to stop it again.
_stop_server (bool, optional) – Only used in portal-interactive mode; makes sure to stop the Server cleanly.
Note that restarting (regardless of the setting) will not work if the Portal is currently running in daemon mode. In that case it always needs to be restarted manually.
Only here for better naming in logs