|
...
|
...
|
@@ -34,7 +34,8 @@ MARCONI_DIR=$DEST/marconi
|
|
34
|
34
|
MARCONICLIENT_DIR=$DEST/python-marconiclient
|
|
35
|
35
|
MARCONI_CONF_DIR=/etc/marconi
|
|
36
|
36
|
MARCONI_CONF=$MARCONI_CONF_DIR/marconi.conf
|
|
37
|
|
-MARCONI_API_LOG_DIR=/var/log/marconi-api
|
|
|
37
|
+MARCONI_API_LOG_DIR=/var/log/marconi
|
|
|
38
|
+MARCONI_API_LOG_FILE=$MARCONI_API_LOG_DIR/queues.log
|
|
38
|
39
|
MARCONI_AUTH_CACHE_DIR=${MARCONI_AUTH_CACHE_DIR:-/var/cache/marconi}
|
|
39
|
40
|
|
|
40
|
41
|
# Support potential entry-points console scripts
|
|
...
|
...
|
@@ -96,6 +97,7 @@ function configure_marconi {
|
|
96
|
96
|
|
|
97
|
97
|
iniset $MARCONI_CONF DEFAULT verbose True
|
|
98
|
98
|
iniset $MARCONI_CONF DEFAULT use_syslog $SYSLOG
|
|
|
99
|
+ iniset $MARCONI_CONF DEFAULT log_file $MARCONI_API_LOG_FILE
|
|
99
|
100
|
iniset $MARCONI_CONF 'drivers:transport:wsgi' bind $MARCONI_SERVICE_HOST
|
|
100
|
101
|
|
|
101
|
102
|
iniset $MARCONI_CONF keystone_authtoken auth_protocol http
|
|
...
|
...
|
@@ -152,7 +154,7 @@ function install_marconiclient {
|
|
152
|
152
|
|
|
153
|
153
|
# start_marconi() - Start running processes, including screen
|
|
154
|
154
|
function start_marconi {
|
|
155
|
|
- screen_it marconi-server "marconi-server --config-file $MARCONI_CONF"
|
|
|
155
|
+ screen_it marconi-server "marconi-server --config-file $MARCONI_CONF 2>&1"
|
|
156
|
156
|
echo "Waiting for Marconi to start..."
|
|
157
|
157
|
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
|
|
158
|
158
|
die $LINENO "Marconi did not start"
|