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

// Stop the underlying c.
func (s *systemService) Stop(stop bool, r *string) error {
	if stop {
		s.c.Stop()
	}
	*r = "OK"

	return nil
}