From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 53EDEE00C9D; Tue, 28 Jun 2016 08:41:39 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.52 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EA5DEE00C72 for ; Tue, 28 Jun 2016 08:41:37 -0700 (PDT) Received: by mail-pa0-f52.google.com with SMTP id b13so7613127pat.0 for ; Tue, 28 Jun 2016 08:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=le0HBaoln/2Pk2c+B+GLT0f7RbXz1MUjhpllxoBClLI=; b=FAuwK+gyZroxWGuH+eIZKVXBx5yaPOOZNKme+6u8SURm2Bfbav6RBh4OMetOZF1myf dB/QWnVEN+ZQ4ubkts8U5EGc0Lmn/GF6MX4lG4UiNNAoU06lFtpIjFjZHmPHOynGgnQu CEfFF52bXVpKPC2sjTXnlmCksqSGb/u2EK76EfIs0IhUnx+EnxD234rnm08dDsg1CTBP PynMCpEMmmrNME4LYg8kS691uKCGtR+jpDaOSiIuH/UL4UEsZbhy9OJhV8RqrvJBpcCJ H129IZq9dWd2UVNUu4FeWJV9cWAyUa4tiXquqQx0egaWP2hAF6Iw7cFhFrCUXz/eGAzZ 5gPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=le0HBaoln/2Pk2c+B+GLT0f7RbXz1MUjhpllxoBClLI=; b=iPHmj/yDh/XtfBoaCegMA/pkFKrpQutLBogJWqu9ArgN/OMRXviArltFzuiFs7VFkr RaeP1BsVX/5OzjF/CiLcnbvtpq/1YBPTrT1ZUkpDC/Qe3xbKv8G6xankt1XossuExN32 6QgFVKTRJ0EM9LcLTi2cuxvOcl9GNnBonfhOPQjS2lUuGwSuIKfinrN1e2iscxpCO6Wm u2LVfhA21+cBe9pey4qUXZBybGenxpl4T+ZpGk9AlTyJpZS/91RGQPpvG1Omhw4cd+nV rwBTS4SK+byHTAqpQBg0YKwEtBF76GY/piNWLwJkisPuBv7B0a1Hb1BVokfg6AyDN0Vh vI6g== X-Gm-Message-State: ALyK8tKpUyslM7kGzB/oJo9o7dvRjoD2fnpMsQCMVbk80hcRXFjkzCxHmAOnjiNlbeM6/ixW X-Received: by 10.66.104.34 with SMTP id gb2mr3024126pab.12.1467128497047; Tue, 28 Jun 2016 08:41:37 -0700 (PDT) Received: from [192.168.0.78] (host86-169-85-169.range86-169.btcentralplus.com. [86.169.85.169]) by smtp.googlemail.com with ESMTPSA id y63sm7278970pfb.13.2016.06.28.08.41.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2016 08:41:36 -0700 (PDT) To: toaster@yoctoproject.org References: From: Michael Wood Message-ID: <57729AAE.80107@intel.com> Date: Tue, 28 Jun 2016 16:41:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: Subject: Re: [PATCH 09/10] toaster-manual: update runbuilds instructions X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 15:41:39 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 27/06/16 16:24, Ed Bartosh wrote: > As Toaster runbuild heavily depends on the environment set by > oe-init-build-env and toaster script, running runbuilds is not > enough anymore. Both above mentioned scripts shoud be sourced > in isolated shell environment using screen or tmux terminal > multiplexers to make runbuilds service working. > > Signed-off-by: Ed Bartosh > --- > .../toaster-manual-setup-and-use.xml | 23 ++++++++++------------ > 1 file changed, 10 insertions(+), 13 deletions(-) > > diff --git a/documentation/toaster-manual/toaster-manual-setup-and-use.xml b/documentation/toaster-manual/toaster-manual-setup-and-use.xml > index febbd15..c37fa65 100644 > --- a/documentation/toaster-manual/toaster-manual-setup-and-use.xml > +++ b/documentation/toaster-manual/toaster-manual-setup-and-use.xml > @@ -438,20 +438,17 @@ > > > > - Install the build runner service. > - This service needs to be running in order to dispatch > - builds. > - Use this command: > + Run Toaster script with 'noweb' command line option. > + This needs to be done in order to dispatch builds. > + Note that this is better to do in screen or tmux session to be able to detach from it > + without stopping Toaster from dispatching builds. > + Use these commands: > > - /var/www/toaster/poky/bitbake/lib/toaster/manage.py runbuilds > - > - Here is an example: > - > - #!/bin/sh > - # toaster run builds dispatcher > - cd /var/www/toaster/ > - source ./venv/bin/activate > - ./bitbake/lib/toaster/manage.py runbuilds > + $ sudo su - toaster -s /bin/bash > + $ screen > + $ cd poky > + $ . oe-init-build-env > + $ . ../bitbake/bin/toaster start noweb > > > We can't really suggest that people use screen or tmux for a production system, as that requires manual intervention to start and stop it. The user which they're running this as might not actually be a full blown system user either and we wouldn't recommend it being one. A better approach would be to write a systemd or sysvint, upstart etc service. e.g. author "Michael W" description "start and stop toaster-next build service" version "1.0" start on started networking stop on runlevel [!2345] respawn script exec su toasterbuilder -c source oe-init-build-env && export DJANGO_SETTINGS_MODULE=toastermain.settings-production && source toaster start noweb end script