Add "os_cloud_config" as a new context flag parameter
[yardstick.git] / docker / supervisor.sh
index b67de22..44e34fb 100755 (executable)
@@ -11,7 +11,7 @@
 # nginx service start when boot
 supervisor_config='/etc/supervisor/conf.d/yardstick.conf'
 
-if [[ ! -e "${supervisor_config}" ]];then
+if [[ ! -e "${supervisor_config}" ]]; then
     cat << EOF > "${supervisor_config}"
 [supervisord]
 nodaemon = true
@@ -22,5 +22,8 @@ command = service nginx restart
 [program:yardstick_uwsgi]
 directory = /etc/yardstick
 command = uwsgi -i yardstick.ini
+
+[program:rabbitmq]
+command = service rabbitmq-server restart
 EOF
 fi