(&self, id: &str)
| 73 | } |
| 74 | |
| 75 | pub fn start(&self, id: &str) -> Result<()> { |
| 76 | let process = self.processes.get(id).context("Process not found")?; |
| 77 | info!("Starting process {id}"); |
| 78 | process.start() |
| 79 | } |
| 80 | |
| 81 | pub fn stop(&self, id: &str) -> Result<()> { |
| 82 | let process = self.processes.get(id).context("Process not found")?; |