evennia.server.portal.service

class evennia.server.portal.service.EvenniaPortalService(*args, **kwargs)[源代码]

基类:twisted.application.service.MultiService

__init__(*args, **kwargs)[源代码]

Initialize self. See help(type(self)) for accurate signature.

portal_maintenance()[源代码]

Repeated maintenance tasks for the portal.

privilegedStartService()[源代码]
register_plugins()[源代码]
check_lockdown(interfaces: list)[源代码]
register_ssl()[源代码]
register_ssh()[源代码]
register_webserver()[源代码]
register_telnet()[源代码]
register_amp()[源代码]
get_info_dict()[源代码]

Return the Portal info, for display.

shutdown(_reactor_stopping=False, _stop_server=False)[源代码]

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.