MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / NewServiceManager

Function NewServiceManager

internal/utils/service.go:25–35  ·  view source on GitHub ↗

获取对象

(name, description string)

Source from the content-addressed store, hash-verified

23
24// 获取对象
25func NewServiceManager(name, description string) *ServiceManager {
26 manager := &ServiceManager{
27 Name: name,
28 Description: description,
29 }
30
31 // root
32 manager.resetRoot()
33
34 return manager
35}
36
37// 设置服务
38func (this *ServiceManager) setup() {

Callers 4

InstallSystemServiceMethod · 0.92
setupSystemdMethod · 0.92
mainFunction · 0.92
TestServiceManager_LogFunction · 0.85

Calls 1

resetRootMethod · 0.95

Tested by 1

TestServiceManager_LogFunction · 0.68