MCPcopy Create free account
hub / github.com/clawshell/clawshell / service_start

Function service_start

src/platform/linux.rs:105–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103}
104
105pub fn service_start() -> Result<(), Error> {
106 let mut start = Command::new("systemctl");
107 start.args(["start", SERVICE_UNIT_NAME]);
108 command_status(&mut start, "systemctl start clawshell.service")?;
109 Ok(())
110}
111
112pub fn service_stop() -> Result<(), Error> {
113 let mut stop = Command::new("systemctl");

Callers 2

start_autostart_serviceFunction · 0.70
cmd_startFunction · 0.50

Calls 1

command_statusFunction · 0.85

Tested by

no test coverage detected