diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-12-02 10:02:43 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-07 17:22:59 +0000 |
commit | dd40d70b707a3ff59edfa69923d4d9b671928a66 (patch) | |
tree | c4ffc0b75c01390e8ab0a4f7bfe6855ce9d65535 /bin/toaster | |
parent | ea3bc8d01704dc64f6cb7b4f5fe66c312a575174 (diff) | |
download | bitbake-contrib-dd40d70b707a3ff59edfa69923d4d9b671928a66.tar.gz |
toaster: implement stop_bitbake function
Separated functionality of stopping bitbake server and observer
processes.
This functionality will be used by build controllers to restart
bitbake processes.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/toaster')
-rwxr-xr-x | bin/toaster | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/toaster b/bin/toaster index eb83e9afa..e82df9b80 100755 --- a/bin/toaster +++ b/bin/toaster @@ -126,16 +126,20 @@ stop_system() kill `cat ${BUILDDIR}/.toasterui.pid` 2>/dev/null rm ${BUILDDIR}/.toasterui.pid fi - BBSERVER=0.0.0.0:-1 bitbake -m - unset BBSERVER + stop_bitbake webserverKillAll - # force stop any misbehaving bitbake server - lsof bitbake.lock | awk '{print $2}' | grep "[0-9]\+" | xargs -n1 -r kill trap - SIGHUP #trap - SIGCHLD INSTOPSYSTEM=0 } +stop_bitbake() { + BBSERVER=0.0.0.0:-1 bitbake -m + unset BBSERVER + # force stop any misbehaving bitbake server + lsof bitbake.lock | awk '{print $2}' | grep "[0-9]\+" | xargs -n1 -r kill +} + check_pidbyfile() { [ -e $1 ] && kill -0 `cat $1` 2>/dev/null } |