Merge "Start grafana-server if horizon is available"

This commit is contained in:
Jenkins 2016-11-16 06:47:03 +00:00 committed by Gerrit Code Review
commit f469a2ea4b
1 changed files with 3 additions and 1 deletions

View File

@ -212,7 +212,7 @@ function start_monasca_services {
if is_service_enabled monasca-thresh; then
start_service monasca-thresh || restart_service monasca-thresh
fi
if is_service_enabled grafana-server; then
if is_service_enabled horizon; then
start_service grafana-server || restart_service grafana-server
fi
_start_monasca_agent
@ -224,6 +224,8 @@ function _start_monasca_agent {
}
function unstack_monasca {
stop_service grafana-server || true
stop_service monasca-agent || true
stop_service monasca-thresh || true