From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B8625E00E96; Fri, 8 Jul 2016 06:30:30 -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 * [74.125.82.47 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-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4D050E00E8F for ; Fri, 8 Jul 2016 06:30:27 -0700 (PDT) Received: by mail-wm0-f47.google.com with SMTP id z126so13328088wme.0 for ; Fri, 08 Jul 2016 06:30:27 -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=tcBbd9OUNFwzvBfJ0fahpr+1Asqdr8zEqeqAYhv0+go=; b=dFO3igNHEMOchfZ90KhfREmOkJKlLDgns7gEVt/JxO2DsNsOBc2HJvHT/dHl/tTCB7 KoH9PYZUh9upn6OYvuOFIHa/5e2xTKgMRfZfNtefQEA8kIp2LuyAi7X/4D2i+SBZBLct v9PYENBNjxBJ+NW7VUZ77rjGq9u5mkErCWJ0dzUhkh/sfMbUCDfz4lWHgwzPkHQJzRxh YOLhPKZD2XYCbQu8z5JR5GW6t1FuYgpr6494xshxPSRbpPi9dd2/3Dzlhf36f8pVxWIS +UiwGSsH7HG4g7JEj4s/rsfYiRvibWM9VDjji+jpnni1h6s9r05ccs2LFsR/H/8T7HKl vC/A== 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=tcBbd9OUNFwzvBfJ0fahpr+1Asqdr8zEqeqAYhv0+go=; b=U6Dzd3LMMKL+KyWsXWQRpE2J8JWkKhV38XDMT22l9fFFMiDPCfVCe2SsM1xnfWEOoB O2PiCRwvd++gb2+VQy0Wx7ci1jziVCFGipaZkwd2h/k04YONR8A8skH9IWwaSoqPtJac FoJaKD7Fm4E52kMZkYZjcfw9lU83IjrG+Mlnqj28CLwg++2dgABPjlvsc34oWsmTy2WA JjzHlTCYgBSEE8bC/1EhpNXJfQMsCtfGnY8YKVEHDeeaTPMpEwTgXM5bwdDNEFyp3PgB 8AyHr9EnBqPvwZEljODHpILaIJTggwRk8VkBjW34cE5HTooaRD5HK/IsBGNiVLe4XlpE ul0g== X-Gm-Message-State: ALyK8tIo6FYw3PAglHJv2llN6tF/eAfY2ukMPVsSbqJXK5SvdrM3fbdwNPZscmo2mf9TaQ97 X-Received: by 10.28.166.150 with SMTP id p144mr3382007wme.57.1467984626843; Fri, 08 Jul 2016 06:30:26 -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 hf7sm2257370wjc.48.2016.07.08.06.30.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jul 2016 06:30:26 -0700 (PDT) To: toaster@yoctoproject.org References: From: Michael Wood Message-ID: <577FAAF0.7050308@intel.com> Date: Fri, 8 Jul 2016 14:30:24 +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: Fri, 08 Jul 2016 13:30:30 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Pasting this in as it's an updated version of this patch: commit 74e368b1855bbf4321f73b09a0f2c973b1e33c61 Author: Ed Bartosh Date: Mon Jun 27 17:37:40 2016 +0300 toaster-manual: update runbuilds instructions Added sample configuration files and instructions for the runbuilds systemd service. Service runs runbuilds in a screen session for user convenience. User can attach to the session to see the runbuilds output, monitor logs and build environment. Signed-off-by: Ed Bartosh diff --git a/documentation/toaster-manual/toaster-manual-setup-and-use.xml b/documentation/toaster-manual/toaster-manual-setup-and-use.xml index febbd15..26e71c8 100644 --- a/documentation/toaster-manual/toaster-manual-setup-and-use.xml +++ b/documentation/toaster-manual/toaster-manual-setup-and-use.xml @@ -438,22 +438,49 @@ - Install the build runner service. - This service needs to be running in order to dispatch - builds. - Use this command: + Prepare systemd service to run toaster builds. + Here is a sample configuration file for the service: - /var/www/toaster/poky/bitbake/lib/toaster/manage.py runbuilds + [Unit] + Description=Toaster runbuilds + + [Service] + Type=forking + User=toaster + ExecStart=/usr/bin/screen -d -m -S runbuilds /var/www/toaster/poky/bitbake/lib/toaster/runbuilds-service.sh start + ExecStop=/usr/bin/screen -S runbuilds -X quit + WorkingDirectory=/var/www/toaster/poky + This is kind of interesting from a developer of Toaster point of view but I don't think we should be recommending screen in the production setup. Toaster should be logging all the useful output anyway. + [Install] + WantedBy=multi-user.target - Here is an example: + And the runbuilds-service.sh script that you should put into /var/www/toaster/poky/bitbake/lib/toaster/ and + set executable permissions to it. - #!/bin/sh - # toaster run builds dispatcher - cd /var/www/toaster/ - source ./venv/bin/activate - ./bitbake/lib/toaster/manage.py runbuilds + #!/bin/bash + + #export http_proxy=http://proxy.host.com:8080 + #export https_proxy=http://proxy.host.com:8080 + #export GIT_PROXY_COMMAND=$HOME/bin/gitproxy + + cd ~/poky/ + source ./oe-init-build-env build + source ../bitbake/bin/toaster $1 noweb + [ "$1" == 'start' ] && /bin/bash - + + + Run the service: + + # service runbuilds start + + As service is running in a detached screen session you can attach to it using this command: + + $ sudo su - toaster + $ screen -rS runbuilds + + And detach from it again using 'Ctrl-a' followed by 'd' key combination. + You can now open up a browser and start using Toaster.