diff options
Diffstat (limited to 'service/reload/service.go')
-rw-r--r-- | service/reload/service.go | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/service/reload/service.go b/service/reload/service.go index db10b6f4..ee2aed99 100644 --- a/service/reload/service.go +++ b/service/reload/service.go @@ -1,6 +1,9 @@ package reload -import "github.com/spiral/roadrunner/service" +import ( + "github.com/spiral/roadrunner/service" + "os" +) // ID contains default service name. const ID = "reload" @@ -25,12 +28,16 @@ func (s *Service) Init(cfg *Config, c service.Container) (bool, error) { } func (s *Service) Serve() error { - w, err := NewWatcher(s.reloadConfig, SetMaxFileEvents(100)) + w, err := NewWatcher(SetMaxFileEvents(100)) if err != nil { return err } - _ = w + name , _ := os.Getwd() + + w.AddSingle(name) + + println("test") return nil } |