运行
()
| 87 | |
| 88 | // 运行 |
| 89 | func (this *ServiceManager) Run() { |
| 90 | err := svc.Run(this.Name, this) |
| 91 | if err != nil { |
| 92 | this.LogError(err.Error()) |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // 同服务管理器的交互 |
| 97 | func (this *ServiceManager) Execute(args []string, r <-chan svc.ChangeRequest, changes chan<- svc.Status) (ssec bool, errno uint32) { |