Browse code

Assurance status of rabbitmq is running

I changed it so that rabbitmq always restart.

Current devstack don't restart rabbitmq in case of ubuntu. Because
rabbitmq is running at default.
But this approach have the following bug.
If rabbitmq is already installed and not running , stack.sh will
fail.
So I change it so that rabbitmq always restart.

Closes-bug: #1030798
Change-Id: Ie45446d3817b2f15631f03b2af84749fe936c67b

Yuki Nishiwaki authored on 2015/03/29 23:35:39
Showing 1 changed files
... ...
@@ -201,10 +201,7 @@ function restart_rpc_backend {
201 201
 
202 202
             [[ $i -eq "10" ]] && die $LINENO "Failed to set rabbitmq password"
203 203
 
204
-            if is_fedora || is_suse; then
205
-                # service is not started by default
206
-                restart_service rabbitmq-server
207
-            fi
204
+            restart_service rabbitmq-server
208 205
 
209 206
             rabbit_setuser "$RABBIT_USERID" "$RABBIT_PASSWORD" || rc=$?
210 207
             if [ $rc -ne 0 ]; then