[bitbake-devel] [PATCH 72/94] bitbake: webhob: startup script fixing
Alex DAMIAN
alexandru.damian at intel.com
Tue Sep 24 16:52:41 UTC 2013
From: Alexandru DAMIAN <alexandru.damian at intel.com>
Let's not start the webserver if the database sync went wrong.
Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
---
bitbake/bin/webhob | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bitbake/bin/webhob b/bitbake/bin/webhob
index aa35294..0c4d9ea 100755
--- a/bitbake/bin/webhob
+++ b/bitbake/bin/webhob
@@ -43,8 +43,9 @@ function webserverStartAll()
python $BBBASEDIR/lib/webhob/manage.py syncdb || retval=1
if [ $retval -eq 1 ]; then
echo "Failed db sync, stopping system start" 1>&2
+ else
+ python $BBBASEDIR/lib/webhob/manage.py runserver </dev/null >${BUILDDIR}/whbmain.log 2>&1 & echo $! >${BUILDDIR}/whbmain.pid
fi
- python $BBBASEDIR/lib/webhob/manage.py runserver </dev/null >${BUILDDIR}/whbmain.log 2>&1 & echo $! >${BUILDDIR}/whbmain.pid
return $retval
}
--
1.8.1.2
More information about the bitbake-devel
mailing list