MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / terminate_service_metadata

Function terminate_service_metadata

packages/server/src/main.rs:1531–1535  ·  view source on GitHub ↗
(metadata: &ServiceMetadata)

Source from the content-addressed store, hash-verified

1529}
1530
1531fn terminate_service_metadata(metadata: &ServiceMetadata) -> anyhow::Result<()> {
1532 terminate_process_group(metadata.pid, Duration::from_secs(5));
1533 let _ = fs::remove_file(service_metadata_path()?);
1534 Ok(())
1535}
1536
1537fn stop_singleton_service_on_port(port: u16) -> anyhow::Result<bool> {
1538 let Some(metadata) = read_service_metadata().ok().flatten() else {

Calls 2

service_metadata_pathFunction · 0.85
terminate_process_groupFunction · 0.70

Tested by

no test coverage detected