1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package rpc import "github.com/spiral/roadrunner/service" // systemService service controls roadrunner server. type systemService struct { c service.Container } // Detach the underlying c. func (s *systemService) Stop(stop bool, r *string) error { if stop { s.c.Stop() } *r = "OK" return nil }