Fix error handling for pidfile
Zuul will now try to open the pidfile and raise an exception if there is a permission / issue with the pidfile path. Change-Id: I3276ffe2de0eeb99a4eb11ba7c0e12a62f1d9886 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
ca2da75ca5
commit
ad5431d274
|
@ -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