akkudoktoreos.server.eos.start_eosdash
- akkudoktoreos.server.eos.start_eosdash(host: str, port: int, eos_host: str, eos_port: int, log_level: str, access_log: bool, reload: bool, eos_dir: str, eos_config_dir: str) Popen
Start the EOSdash server as a subprocess.
This function starts the EOSdash server by launching it as a subprocess. It checks if the server is already running on the specified port and either returns the existing process or starts a new one.
- Parameters:
host (str) – The hostname for the EOSdash server.
port (int) – The port for the EOSdash server.
eos_host (str) – The hostname for the EOS server.
eos_port (int) – The port for the EOS server.
log_level (str) – The logging level for the EOSdash server.
access_log (bool) – Flag to enable or disable access logging.
reload (bool) – Flag to enable or disable auto-reloading.
eos_dir (str) – Path to the EOS data directory.
eos_config_dir (str) – Path to the EOS configuration directory.
- Returns:
The process of the EOSdash server.
- Return type:
subprocess.Popen
- Raises:
RuntimeError – If the EOSdash server fails to start.