These service definitions provide the Termux counterpart to the Linux service installers under scripts/systemd/. Runit remains the process supervisor on Android/Termux; higher-level clients such as the OpenRoadCode Android bridge may control it through the localhost service-manager API.
The normal core stack is broker + Valhalla + navigation + automotive. ADS-B is kept optional so radio processing is not consuming resources when it is not needed. The service manager is intentionally lightweight and can remain running while the core stack is stopped.
The service manager configures the shared ORC logger at startup. Service actions, normalized status changes, input-health changes, and failures use runtime.services.runit; HTTP server lifecycle uses runtime.services.http. Repeated unchanged status checks stay quiet at INFO. See the runtime logging guide for live viewing and the separate Linux service-account store.
Only the service manager starts automatically after installation. Core, SDRForge, and ADS-B definitions include runit's down marker so opening Termux does not unexpectedly consume routing, radio, or sensor resources.
Termux requires the termux-services package:
After installing that package, restart the Termux shell once so its service environment is initialized. Then, from the OpenRoadCode repository:
If Valhalla is running in a foreground terminal, stop that instance before installing its supervised service. New navigation builds register these services automatically. Routing data must be installed before Valhalla can serve requests.
On Linux, scripts/systemd/install_navigation_runtime_systemd.sh installs and enables the broker, Valhalla, and navigation units. Navigation requests valhalla.service as a dependency. After upgrading service-manager integration, rerun scripts/systemd/install_service_manager_systemd.sh to refresh its narrow systemctl permissions, which now include Valhalla core start/stop/restart.
The installer creates real service directories under $PREFIX/var/service/ and copies the version-controlled run definitions into them. Mutable supervise/ state therefore remains outside the source tree. The installer also removes retired service names, stopping them first so a migration cannot leave duplicate processes bound to the same ports.
Every service writes rotating logs beneath ~/.local/state/openroadcode/log/<service>/. The installer also verifies that runsvdir has adopted every service. A newly added service normally appears automatically. If Termux's existing supervisor does not notice it, the installer reports the affected services and asks you to restart the supervisor:
Then fully close/reopen Termux and verify the reported service with sv status. This is the recovery for warnings such as:
Start dependencies in the order broker -> Valhalla -> navigation -> automotive. Stop them in reverse order. openroadcode-adsb may be started and stopped independently.
The Android bridge does not replace runit. It uses the service manager as a small control plane while runit continues to own process lifetime and crash restarts.
The API binds only to localhost and accepts only predefined OpenRoadCode service operations. It deliberately does not expose arbitrary shell execution.
Stopping the core stack is the preferred phone idle state when OpenRoadCode is not being used. The lightweight service manager can remain available so the Android bridge can start the stack again. Android-side sensor, Bluetooth, camera, and USB/radio services have separate lifecycles; a future full-stop control can shut those down together with the Termux core for the lowest idle power use.
Configure the region once with bash scripts/configure_sdrforge_region.sh romeo. The managed SDRForge service loads ~/.config/sdrforge/radio-region.conf through libSDRForge's region-aware launcher at every start. Install the tracked service definition with bash scripts/runit/install_termux_services.sh. An existing SDRForge service keeps its previous enabled/disabled state; a new installation starts disabled. After updating an existing simulated service, run sv restart openroadcode-sdrforge to apply the new launcher. The installer itself does not restart the running SDRForge process.