[bitbake-devel] [PATCH 47/94] bitbake: webhob: force bitbake server stop

Alex DAMIAN alexandru.damian at intel.com
Tue Sep 24 16:52:16 UTC 2013


From: Alexandru DAMIAN <alexandru.damian at intel.com>

We force a bitbake server stop by killing it on the stop command.

This will have no effect on well behaving servers since
they will be stopped anyway by the bitbake -m command above

Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
---
 bitbake/bin/webhob | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bitbake/bin/webhob b/bitbake/bin/webhob
index 7b74465..099f2d3 100755
--- a/bitbake/bin/webhob
+++ b/bitbake/bin/webhob
@@ -124,6 +124,8 @@ case $CMD in
         bitbake -m
         unset BBSERVER
         webserverKillAll
+        # force stop any misbehaving bitbake server
+        lsof bitbake.lock | awk '{print $2}' | grep "[0-9]\+" | xargs -n1 kill
     ;;
 esac
 
-- 
1.8.1.2




More information about the bitbake-devel mailing list