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

Method install

src/daemon/service.rs:543–554  ·  view source on GitHub ↗
(&self, service_path: &Path, start: bool, socket_path: &Path)

Source from the content-addressed store, hash-verified

541 }
542
543 fn install(&self, service_path: &Path, start: bool, socket_path: &Path) -> Result<()> {
544 match self {
545 Self::Systemd => {
546 if start {
547 run_systemctl(&["daemon-reload"])?;
548 run_systemctl(&["enable", "--now", super::SERVICE_NAME])?;
549 }
550 Ok(())
551 }
552 Self::Launchd => launchd_install(service_path, start, socket_path),
553 }
554 }
555
556 fn refresh(&self, service_path: &Path, socket_path: &Path) -> Result<()> {
557 match self {

Callers 1

install_serviceFunction · 0.45

Calls 2

run_systemctlFunction · 0.85
launchd_installFunction · 0.85

Tested by

no test coverage detected