[oe-commits] [bitbake] 04/17: prserv/serv: Shut down any existing server before restarting

git at git.openembedded.org git at git.openembedded.org
Thu Aug 31 16:56:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit b8616931bc0e523a3a3bb23b4f623f8b6e71d690
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Aug 31 17:22:25 2017 +0100

    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 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list