Fix redis service restarting for Ceilometer
In Ubuntu redis service is named as redis-server. So in this patchset different restarting for this service at different OSes have been added. Change-Id: I406e3556c7b9a2bef8277f34862375c5ffd3888e Closes-bug: #1405147
This commit is contained in:
parent
6ec66bb3d1
commit
fe5164aeef
@ -272,12 +272,12 @@ function init_ceilometer {
|
|||||||
function install_redis {
|
function install_redis {
|
||||||
if is_ubuntu; then
|
if is_ubuntu; then
|
||||||
install_package redis-server
|
install_package redis-server
|
||||||
|
restart_service redis-server
|
||||||
else
|
else
|
||||||
# This will fail (correctly) where a redis package is unavailable
|
# This will fail (correctly) where a redis package is unavailable
|
||||||
install_package redis
|
install_package redis
|
||||||
|
restart_service redis
|
||||||
fi
|
fi
|
||||||
|
|
||||||
restart_service redis
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# install_ceilometer() - Collect source and prepare
|
# install_ceilometer() - Collect source and prepare
|
||||||
|
Loading…
Reference in New Issue
Block a user