This patch,
1. adds log_file option to marconi.conf
2. redirects the output from marconi-server, in the same precedent
set by another project.
Change-Id: Ib273a03625d5a4edf8bb3ed7d522d2b087975acd
| ... | ... |
@@ -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 |
| ... | ... |
@@ -148,7 +150,7 @@ function install_marconiclient {
|
| 148 | 148 |
|
| 149 | 149 |
# start_marconi() - Start running processes, including screen |
| 150 | 150 |
function start_marconi {
|
| 151 |
- screen_it marconi-server "marconi-server --config-file $MARCONI_CONF" |
|
| 151 |
+ screen_it marconi-server "marconi-server --config-file $MARCONI_CONF 2>&1" |
|
| 152 | 152 |
echo "Waiting for Marconi to start..." |
| 153 | 153 |
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 |
| 154 | 154 |
die $LINENO "Marconi did not start" |