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

Submitted by Alexandru DAMIAN on Sept. 24, 2013, 4:52 p.m.

Details

Message ID 37b39d455dd85e071919c761daa1d51034b46a91.1380041477.git.alexandru.damian@intel.com
State New
Headers show

Commit Message

Alexandru DAMIAN Sept. 24, 2013, 4:52 p.m.
From: Alexandru DAMIAN <alexandru.damian@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@intel.com>
---
 bitbake/bin/webhob | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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