Merge pull request #758 from mrunalp/inotify_exit_watch
Inotify exit watch
This commit is contained in:
commit
95165063bd
8 changed files with 97 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue