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

Function refresh_service

src/daemon/service.rs:274–279  ·  view source on GitHub ↗
(spec: &DaemonServiceSpec)

Source from the content-addressed store, hash-verified

272}
273
274pub fn refresh_service(spec: &DaemonServiceSpec) -> Result<PathBuf> {
275 let runner = ServiceRunner::current()?;
276 let service_path = write_service_unit(spec)?;
277 runner.refresh(&service_path, &spec.socket_path)?;
278 Ok(service_path)
279}
280
281pub fn refresh_installed_service(spec: &DaemonServiceSpec) -> Result<Option<PathBuf>> {
282 let service_path = service_unit_path()?;

Calls 2

write_service_unitFunction · 0.85
refreshMethod · 0.45