This patch adds daemon flag to marconi script. This change was
needed to run the latest build of marconi-server in background.
Since mongodb can not be used with marconi until gate is updated
to Ubuntu 14.04, we are changing our backend to sqlite.
Change-Id: I1a4148bd545818d5e943257be2f6e752ce43f793
| ... | ... |
@@ -42,7 +42,7 @@ MARCONI_AUTH_CACHE_DIR=${MARCONI_AUTH_CACHE_DIR:-/var/cache/marconi}
|
| 42 | 42 |
MARCONI_BIN_DIR=$(get_python_exec_prefix) |
| 43 | 43 |
|
| 44 | 44 |
# Set up database backend |
| 45 |
-MARCONI_BACKEND=${MARCONI_BACKEND:-mongodb}
|
|
| 45 |
+MARCONI_BACKEND=${MARCONI_BACKEND:-sqlite}
|
|
| 46 | 46 |
|
| 47 | 47 |
|
| 48 | 48 |
# Set Marconi repository |
| ... | ... |
@@ -109,8 +109,8 @@ function configure_marconi {
|
| 109 | 109 |
if [ "$MARCONI_BACKEND" = 'mysql' ] || [ "$MARCONI_BACKEND" = 'postgresql' ] ; then |
| 110 | 110 |
iniset $MARCONI_CONF drivers storage sqlalchemy |
| 111 | 111 |
iniset $MARCONI_CONF 'drivers:storage:sqlalchemy' uri `database_connection_url marconi` |
| 112 |
- else |
|
| 113 |
- iniset $MARCONI_CONF drivers storage mongodb |
|
| 112 |
+ elif [ "$MARCONI_BACKEND" = 'mongodb' ] ; then |
|
| 113 |
+ iniset $MARCONI_CONF drivers storage mongodb |
|
| 114 | 114 |
iniset $MARCONI_CONF 'drivers:storage:mongodb' uri mongodb://localhost:27017/marconi |
| 115 | 115 |
configure_mongodb |
| 116 | 116 |
cleanup_marconi |
| ... | ... |
@@ -154,7 +154,7 @@ function install_marconiclient {
|
| 154 | 154 |
|
| 155 | 155 |
# start_marconi() - Start running processes, including screen |
| 156 | 156 |
function start_marconi {
|
| 157 |
- screen_it marconi-server "marconi-server --config-file $MARCONI_CONF" |
|
| 157 |
+ screen_it marconi-server "marconi-server --config-file $MARCONI_CONF --daemon" |
|
| 158 | 158 |
echo "Waiting for Marconi to start..." |
| 159 | 159 |
if ! timeout $SERVICE_TIMEOUT sh -c "while ! wget --no-proxy -q -O- $MARCONI_SERVICE_PROTOCOL://$MARCONI_SERVICE_HOST:$MARCONI_SERVICE_PORT/v1/health; do sleep 1; done"; then |
| 160 | 160 |
die $LINENO "Marconi did not start" |