summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-31 17:22:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-31 17:36:53 +0100
commitb8616931bc0e523a3a3bb23b4f623f8b6e71d690 (patch)
tree23d7c4294b2921d67e061593c79af673c231dc23
parent638d366234fad78f283d3a13a12b07cb0ccbe914 (diff)
downloadbitbake-contrib-b8616931bc0e523a3a3bb23b4f623f8b6e71d690.zip
bitbake-contrib-b8616931bc0e523a3a3bb23b4f623f8b6e71d690.tar.gz
bitbake-contrib-b8616931bc0e523a3a3bb23b4f623f8b6e71d690.tar.bz2
prserv/serv: Shut down any existing server before restarting
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@linuxfoundation.org>
-rw-r--r--lib/prserv/serv.py3
1 files changed, 3 insertions, 0 deletions
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