Skip to main content

running_instance

Function running_instance 

Source
pub async fn running_instance(data_dir: &Path) -> Option<u16>
Expand description

The port of another teamcraft local that still serves this data directory: its port file names a port whose /readyz answers like TeamCraft. Starting a second one would stop its PostgreSQL (it looks left running), so the caller refuses instead. A port file left behind by a killed instance does not count.