Skip to main content

service_unit

Function service_unit 

Source
pub fn service_unit(home: &Path, entry: &Path, node: &str) -> ServiceUnit
Expand description

Render the per-platform service unit for this Machine’s teams node.

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.