From: Michael Wood <michael.g.wood@intel.com>
To: toaster@yoctoproject.org
Subject: Re: [PATCH 09/10] toaster-manual: update runbuilds instructions
Date: Tue, 28 Jun 2016 16:41:34 +0100 [thread overview]
Message-ID: <57729AAE.80107@intel.com> (raw)
In-Reply-To: <ae5cf03c0c596e2ba2973d83b740a61187064a79.1467039494.git.ed.bartosh@linux.intel.com>
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 <ed.bartosh@linux.intel.com>
> ---
> .../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 @@
> </literallayout>
> </para></listitem>
> <listitem><para>
> - 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:
> <literallayout class='monospaced'>
> - /var/www/toaster/poky/bitbake/lib/toaster/manage.py runbuilds
> - </literallayout>
> - Here is an example:
> - <literallayout class='monospaced'>
> - #!/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
> </literallayout>
> </para></listitem>
> </orderedlist>
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
next prev parent reply other threads:[~2016-06-28 15:41 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-27 15:24 [PATCH 00/10] Toaster documentation update Ed Bartosh
2016-06-27 15:24 ` [PATCH 01/10] toaster-manual: Switch to pip3 dependency installer Ed Bartosh
2016-06-27 15:24 ` [PATCH 02/10] toaster-manual: update distro versions Ed Bartosh
2016-06-27 15:24 ` [PATCH 03/10] toaster-manual: update list of packages Ed Bartosh
2016-06-27 15:24 ` [PATCH 04/10] toaster-manual: add list of packages for openSUSE Ed Bartosh
2016-06-27 15:24 ` [PATCH 05/10] toaster-manual: add instructions to create user Ed Bartosh
2016-06-27 15:24 ` [PATCH 06/10] toaster-manual: change mysql driver Ed Bartosh
2016-06-27 15:24 ` [PATCH 07/10] toaster-manual: add instructions for OpenSUSE Ed Bartosh
2016-06-27 15:24 ` [PATCH 08/10] toaster-manual: update apache configuration file Ed Bartosh
2016-06-27 15:24 ` [PATCH 09/10] toaster-manual: update runbuilds instructions Ed Bartosh
2016-06-28 15:41 ` Michael Wood [this message]
2016-07-05 13:53 ` Ed Bartosh
2016-07-08 13:30 ` Michael Wood
2016-07-12 0:10 ` Brian Avery
2016-07-12 15:36 ` Ed Bartosh
2016-06-27 15:24 ` [PATCH 10/10] toaster-manual: add OpenSUSE to the list of distros Ed Bartosh
2016-07-08 13:37 ` [PATCH] toaster-manual: Update toaster start documentation Michael Wood
2016-07-13 16:06 ` Brian Avery
2016-07-14 18:14 ` Scott Rifenbark
2016-07-14 23:45 ` Brian Avery
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57729AAE.80107@intel.com \
--to=michael.g.wood@intel.com \
--cc=toaster@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.