()
| 42 | } |
| 43 | |
| 44 | func (d *Daemon) Run() { |
| 45 | |
| 46 | commands.ResolveCommand(d.config.Arguments) |
| 47 | |
| 48 | commands.RegisterFunction() |
| 49 | |
| 50 | beego.ErrorController(&controllers.ErrorController{}) |
| 51 | |
| 52 | models.Init() |
| 53 | |
| 54 | beego.Run() |
| 55 | } |
| 56 | |
| 57 | func (d *Daemon) Stop(s service.Service) error { |
| 58 | if service.Interactive() { |
no test coverage detected