summaryrefslogtreecommitdiff
path: root/service/rpc/system.go
blob: d1368a05913d7580c2122184ecce8bf40b6e60f8 (plain)
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
}