Merge "Fix error handling for pidfile" into feature/zuulv3
This commit is contained in:
commit
452ca6bbb6
|
@ -181,8 +181,9 @@ class ZuulDaemonApp(ZuulApp):
|
|||
else:
|
||||
# Exercise the pidfile before we do anything else (including
|
||||
# logging or daemonizing)
|
||||
with daemon.DaemonContext(pidfile=pid):
|
||||
with pid:
|
||||
pass
|
||||
|
||||
with daemon.DaemonContext(pidfile=pid):
|
||||
self.run()
|
||||
|
||||
|
|
Loading…
Reference in New Issue