gws.server.control

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 backends

    • reload nginx

  3. Server reload. Can be called anytime, e.g. by the monitor

    • write server configs

    • empty the TRANSIENT_DIR

    • reload all backends

    • reload nginx

  4. Configure (debugging)

    • configure

    • store the config

  5. Configtest (debugging)

    • configure

Source code: gws.server.control

Module Contents

gws.server.control.app_is_running(srv)
gws.server.control.configure(manifest_path=None, config_path=None, is_starting=False)
gws.server.control.configure_and_store(manifest_path=None, config_path=None, is_starting=False)
gws.server.control.reconfigure(manifest_path=None, config_path=None)
gws.server.control.reload_all()
gws.server.control.reload_app(srv)
gws.server.control.reload_nginx()
gws.server.control.start(manifest_path=None, config_path=None)