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

Method Setup

internal/nodes/system_services.go:45–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func (this *SystemServiceManager) Setup() error {
46 if sharedNodeConfig == nil || !sharedNodeConfig.IsOn {
47 return nil
48 }
49
50 if len(sharedNodeConfig.SystemServices) == 0 {
51 return nil
52 }
53
54 systemdParams, ok := sharedNodeConfig.SystemServices[nodeconfigs.SystemServiceTypeSystemd]
55 if ok {
56 err := this.setupSystemd(systemdParams)
57 if err != nil {
58 return err
59 }
60 }
61
62 return nil
63}
64
65func (this *SystemServiceManager) setupSystemd(params maps.Map) error {
66 // 只有在Linux下运行

Callers 1

initFunction · 0.80

Calls 1

setupSystemdMethod · 0.95

Tested by

no test coverage detected