MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / installed_service_socket_path

Function installed_service_socket_path

src/daemon/service.rs:329–337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327}
328
329pub fn installed_service_socket_path() -> Result<Option<PathBuf>> {
330 let service_path = service_unit_path()?;
331 if !service_path.exists() {
332 return Ok(None);
333 }
334 Ok(socket_path_from_unit_text(&read_service_unit(
335 &service_path,
336 )?))
337}
338
339fn read_service_unit(service_path: &Path) -> Result<String> {
340 std::fs::read_to_string(service_path).map_err(|e| TraceDecayError::Config {

Callers 2

refresh_daemon_serviceFunction · 0.85

Calls 4

service_unit_pathFunction · 0.85
read_service_unitFunction · 0.85
existsMethod · 0.80

Tested by

no test coverage detected