summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-06-03 16:26:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-06 10:32:48 +0100
commitc39838201301b9732581288a93783400bebe6591 (patch)
treebbafcc204a0bee7e6e39bfe02b88efce7a1a0397 /bin
parentd16d19dafb83448fc214fce4fbdc2bcbf4bf9ce3 (diff)
downloadbitbake-contrib-c39838201301b9732581288a93783400bebe6591.tar.gz
toaster: startup script noweb mode
We add an option to the startup script, named "noweb" that will start toaster without the embedded web server. This is useful to start the system for build-only environments, where the web server code is running on a different machine. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/toaster6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/toaster b/bin/toaster
index dea69a465..f81e6672f 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -146,11 +146,15 @@ else
fi
NOTOASTERUI=0
+WEBSERVER=1
for param in $*; do
case $param in
noui )
NOTOASTERUI=1
;;
+ noweb )
+ WEBSERVER=0
+ ;;
esac
done
@@ -176,7 +180,7 @@ case $CMD in
start )
start_success=1
addtoConfiguration "INHERIT+=\"toaster buildhistory\"" toaster.conf
- if ! webserverStartAll; then
+ if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then
echo "Failed ${CMD}."
return 4
fi