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

Method refresh

src/daemon/service.rs:556–566  ·  view source on GitHub ↗
(&self, service_path: &Path, socket_path: &Path)

Source from the content-addressed store, hash-verified

554 }
555
556 fn refresh(&self, service_path: &Path, socket_path: &Path) -> Result<()> {
557 match self {
558 Self::Systemd => {
559 run_systemctl(&["daemon-reload"])?;
560 run_systemctl(&["enable", super::SERVICE_NAME])?;
561 run_systemctl(&["restart", super::SERVICE_NAME])?;
562 Ok(())
563 }
564 Self::Launchd => launchd_refresh(service_path, socket_path),
565 }
566 }
567
568 fn before_uninstall(&self, stop: bool) -> Result<()> {
569 match self {

Callers 1

refresh_serviceFunction · 0.45

Calls 2

run_systemctlFunction · 0.85
launchd_refreshFunction · 0.85

Tested by

no test coverage detected