archivebox.cli.archivebox_server

Module Contents

Functions

stop_existing_background_runner

Stop any existing orchestrator process so the server can take ownership.

_read_supervisor_worker_command

_worker_command_matches_bind

stop_existing_server_workers

Stop existing ArchiveBox web workers if they already own the requested bind.

server

Run the ArchiveBox HTTP server

main

API

archivebox.cli.archivebox_server.stop_existing_background_runner(*, machine, process_model, supervisor=None, stop_worker_fn=None, log=print) int[source]

Stop any existing orchestrator process so the server can take ownership.

archivebox.cli.archivebox_server._read_supervisor_worker_command(worker_name: str) str[source]
archivebox.cli.archivebox_server._worker_command_matches_bind(command: str, host: str, port: str) bool[source]
archivebox.cli.archivebox_server.stop_existing_server_workers(*, supervisor, stop_worker_fn, host: str, port: str, log=print) int[source]

Stop existing ArchiveBox web workers if they already own the requested bind.

archivebox.cli.archivebox_server.server(runserver_args: collections.abc.Iterable[str] = (SERVER_CONFIG.BIND_ADDR,), reload: bool = False, init: bool = False, debug: bool = False, daemonize: bool = False, nothreading: bool = False) None[source]

Run the ArchiveBox HTTP server

archivebox.cli.archivebox_server.main(**kwargs)[source]