OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
service_manager_runtime Namespace Reference

Runtime selection for the OpenRoadCode service supervisor backend. More...

Functions

ServiceManagerRuntime detect_service_manager_runtime (Mapping[str, str]|None environment=None, *, str|None platform=None)
 Return the service-manager runtime for the current host.
 create_service_manager (Mapping[str, str]|None environment=None, *, str|None platform=None)
 Construct the supervisor backend appropriate for the current runtime.

Detailed Description

Runtime selection for the OpenRoadCode service supervisor backend.

Function Documentation

◆ detect_service_manager_runtime()

ServiceManagerRuntime service_manager_runtime.detect_service_manager_runtime ( Mapping[str, str] | None environment = None,
* ,
str | None platform = None )

Return the service-manager runtime for the current host.

Termux is identified from its environment rather than from the presence of a particular supervisor executable. Normal Linux hosts use systemd.