Merge pull request #758 from mrunalp/inotify_exit_watch

Inotify exit watch
This commit is contained in:
Antonio Murdaca 2017-08-14 16:00:35 +02:00 committed by GitHub
commit 95165063bd
8 changed files with 97 additions and 27 deletions

View file

@ -408,6 +408,10 @@ func main() {
// after the daemon is done setting up we can notify systemd api
notifySystem()
go func() {
service.StartExitMonitor()
}()
err = s.Serve(lis)
if graceful && strings.Contains(strings.ToLower(err.Error()), "use of closed network connection") {
err = nil