Browse Source

add logging, fix qpidd startup race

Kenneth Giusti 3 years ago
parent
commit
22e7d43d8f
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      devstack/plugin.sh

+ 4
- 2
devstack/plugin.sh View File

@@ -137,6 +137,7 @@ EOF
137 137
 queue-patterns=exclusive
138 138
 queue-patterns=unicast
139 139
 topic-patterns=broadcast
140
+log-to-file=$LOGDIR/qpidd.log 
140 141
 EOF
141 142
     fi
142 143
 }
@@ -169,7 +170,8 @@ function _install_qpid_backend {
169 170
 
170 171
 function _start_qpid_backend {
171 172
     echo_summary "Starting qpidd broker"
172
-    start_service qpidd
173
+    # restart, since qpidd may already be running
174
+    restart_service qpidd
173 175
 }
174 176
 
175 177
 
@@ -178,7 +180,7 @@ function _cleanup_qpid_backend {
178 180
         uninstall_package qpid-cpp-server
179 181
 	# TODO(kgiusti) can we pull these, or will that break other
180 182
 	# packages that depend on them?
181
-	
183
+
182 184
         # install_package cyrus_sasl_lib
183 185
         # install_package cyrus_sasl_plain
184 186
     elif is_ubuntu; then

Loading…
Cancel
Save