]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: bin/toaster Fix noweb command
authorMichael Wood <michael.g.wood@intel.com>
Thu, 21 Apr 2016 13:22:06 +0000 (14:22 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Apr 2016 09:30:39 +0000 (10:30 +0100)
For the noweb command we don't need to check if a socket is in use or
not as we're not starting the django development server. We're just
setting up the environment and running the runbuilds scheduler.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bin/toaster

index 9540fc9e6c477373ba90530d15df8ce6a5c7fe7c..987d53c10d9dc2a11c402e6a57a3f08d03a55970 100755 (executable)
@@ -255,7 +255,9 @@ case $CMD in
     start )
         # check if addr:port is not in use
         if [ "$CMD" == 'start' ]; then
-             $MANAGE checksocket "$ADDR_PORT" || return 1
+            if [ $WEBSERVER -gt 0 ]; then
+                $MANAGE checksocket "$ADDR_PORT" || return 1
+            fi
         fi
 
         # kill Toaster web server if it's alive