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