func Stop(b backend.Backend, targets []string) error { // if target is platform, stop all services if len(targets) == 1 && targets[0] == PlatformInstallCommand { return StopPlatform(b) } return b.Stop(targets) }
func Restart(b backend.Backend, targets []string) error { if err := b.Stop(targets); err != nil { return err } return b.Start(targets) }