server: fsnotify on hooks
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
d6c32fa88e
commit
ca94095739
4 changed files with 91 additions and 5 deletions
|
@ -485,6 +485,9 @@ func main() {
|
|||
go func() {
|
||||
service.StartExitMonitor()
|
||||
}()
|
||||
go func() {
|
||||
service.StartHooksMonitor()
|
||||
}()
|
||||
|
||||
m := cmux.New(lis)
|
||||
grpcL := m.Match(cmux.HTTP2HeaderField("content-type", "application/grpc"))
|
||||
|
@ -527,7 +530,7 @@ func main() {
|
|||
<-streamServerCloseCh
|
||||
logrus.Debug("closed stream server")
|
||||
<-serverMonitorsCh
|
||||
logrus.Debug("closed exit monitor")
|
||||
logrus.Debug("closed monitors")
|
||||
<-serverCloseCh
|
||||
logrus.Debug("closed main server")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue