pub fn service_unit(
home: &Path,
entry: &Path,
node: &str,
) -> Result<ServiceUnit, TeamsError>Expand description
Render the per-platform service unit for this machine’s teams daemon.
The node takes no --root: it serves the home its own environment
resolves (SUPERCODE_TEAMS_HOME, else <SUPERCODE_HOME>/teams), so the
unit names the listen address and nothing else. A port of 0 means the
node picks one and publishes it in <home>/node.json.
On Windows it is a per-user Scheduled Task, rendered exactly as a connector’s is (see [windows_task]).