pub fn write_port_file(data_dir: &Path, http_port: u16) -> Result<()>
Records the HTTP port of this instance in the data directory.