Stop implements plugins.ProcAdapter.
(id string)
| 73 | |
| 74 | // Stop implements plugins.ProcAdapter. |
| 75 | func (a *procToolAdapter) Stop(id string) (string, error) { |
| 76 | info, err := a.supervisor().Stop(id) |
| 77 | if err != nil { |
| 78 | return "", err |
| 79 | } |
| 80 | return fmt.Sprintf("stopped %s (exit code %d)", info.ID, info.ExitCode), nil |
| 81 | } |
| 82 | |
| 83 | // Remove implements plugins.ProcAdapter. |
| 84 | func (a *procToolAdapter) Remove(id string) (string, error) { |