[bitbake-devel] [PATCH 04/10] prserv/serv: Shut down any existing server before restarting
Richard Purdie
richard.purdie at linuxfoundation.org
Thu Aug 31 16:38:34 UTC 2017
This allows for cleaner code in cooker as any existing server is dealt
with before a new one is started.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/prserv/serv.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/prserv/serv.py b/lib/prserv/serv.py
index 306f0a3..a2da072 100644
--- a/lib/prserv/serv.py
+++ b/lib/prserv/serv.py
@@ -442,6 +442,9 @@ class PRServiceConfigError(Exception):
def auto_start(d):
global singleton
+ # Shutdown any existing PR Server
+ auto_shutdown()
+
host_params = list(filter(None, (d.getVar('PRSERV_HOST') or '').split(':')))
if not host_params:
return None
--
2.7.4
More information about the bitbake-devel
mailing list