~ibmcharmers/charms/trusty/ibm-mq/devel

« back to all changes in this revision

Viewing changes to reactive/ibm-mq.sh

  • Committer: anitanayak at ibm
  • Date: 2017-02-15 08:54:14 UTC
  • Revision ID: anitanayak@in.ibm.com-20170215085414-hdjj8hr2tssjolt2
checkin after review comment incorporation to interface interface-ibm-mq

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
        if [ $? == 0 ]; then
218
218
                juju-log "IBM MQ: Deleted queue."
219
219
        else
220
 
                juju-log "IBM IB: Failed to delete queue."
 
220
                juju-log "IBM MQ: Failed to delete queue."
221
221
        fi
222
222
        
223
223
 
228
228
        if [ $? == 0 ]; then
229
229
                juju-log "IBM MQ: Stopped queue manager from listening."
230
230
        else
231
 
                juju-log "IBM IB: Failed to stop queue manager to listen."
 
231
                juju-log "IBM MQ: Failed to stop queue manager to listen."
232
232
        fi
233
233
 
234
234
        #close-port the open-port for the consumer
239
239
        su -l mqm -c "$MQ_INSTALL_PATH/bin/endmqm $QMA"
240
240
        su -l mqm -c "$MQ_INSTALL_PATH/bin/endmqlsr -w -m  $QMA"
241
241
        if [ $? -eq 0 ]; then
242
 
                juju-log "IBM IB: Queue Manager is stopped."
 
242
                juju-log "IBM MQ: Queue Manager is stopped."
243
243
        else
244
 
                juju-log "IBM IB: Queue Manager failed to stop."
 
244
                juju-log "IBM MQ: Queue Manager failed to stop."
245
245
        fi
246
246
 
247
247
        sleep 10
249
249
        juju-log "IBM MQ: Deleting queue manager."
250
250
        su -l mqm -c "$MQ_INSTALL_PATH/bin/dltmqm $QMA"
251
251
        if [ $? -eq 0 ]; then
252
 
                juju-log "IBM IB: Queue Manager is deleted."
 
252
                juju-log "IBM MQ: Queue Manager is deleted."
253
253
        else
254
 
                juju-log "IBM IB: Queue Manager could not be deleted."
 
254
                juju-log "IBM MQ: Queue Manager could not be deleted."
255
255
        fi
256
256
 
257
257
        #clean up the created MQSC files