module documentation

Server control.

Following workflows are supported:

  1. Server start. This is called only once upon the container start.

    • (empty TMP_DIR completely in bin/gws)
    • configure
    • store the config
    • write server configs
    • (the actual invocation of the server start script takes place in bin/gws)
  2. Server reconfigure. Can be called anytime, e.g. by the monitor

    • configure
    • store the config
    • write server configs
    • empty the TRANSIENT_DIR
    • reload all uwsgis
    • reload nginx
  3. Server reload. Can be called anytime, e.g. by the monitor

    • write server configs
    • empty the TRANSIENT_DIR
    • reload all uwsgis
    • reload nginx
  4. Configure (debugging)

    • configure
    • store the config
  5. Configtest (debugging)

    • configure
Function configure Undocumented
Function configure_and_store Undocumented
Function reconfigure Undocumented
Function reload_all Undocumented
Function reload_nginx Undocumented
Function reload_server Undocumented
Function server_is_running Undocumented
Function start Undocumented
Constant SERVER_START_SCRIPT Undocumented
Constant _FALLBACK_CONFIG Undocumented
def configure(manifest_path=None, config_path=None, is_starting=False): (source)

Undocumented

def configure_and_store(manifest_path=None, config_path=None, is_starting=False): (source)

Undocumented

def reconfigure(manifest_path=None, config_path=None): (source)

Undocumented

def reload_all(): (source)

Undocumented

def reload_nginx(): (source)

Undocumented

def reload_server(srv): (source)

Undocumented

def server_is_running(srv): (source)

Undocumented

def start(manifest_path=None, config_path=None): (source)

Undocumented

SERVER_START_SCRIPT = (source)

Undocumented

Value
f"""{gws.VAR_DIR}/server.sh"""
_FALLBACK_CONFIG: dict[str, dict] = (source)

Undocumented

Value
{'server': {'mapproxy': {'enabled': False},
            'monitor': {'enabled': False},
            'log': {'level': 'INFO'},
            'qgis': {'enabled': False},
            'spool': {'enabled': False},
            'web': {'enabled': True, 'workers': 1},
            'autoRun': '',
...