And you might want to add a trigger monitor startup: runmqtrm -m $1 -q $1.INIT.QUEUE >> /home/mqm/log/mqtrigmon.log 2>&1 &
Where $1 is the queue manager. Peter Heggie -----Original Message----- From: MQSeries List [mailto:[EMAIL PROTECTED] On Behalf Of Roger Lacroix Sent: Friday, February 20, 2004 11:21 AM To: [EMAIL PROTECTED] Subject: Re: MQ MGR Startup Script Hi, I'll assume you were referring to Unix. Here is a simple script to start or stop 1 queue manager (This works on Solaris): ++++++++++++ Cut here +++++++++++++++++ #!/sbin/sh # # # Startup script for "QMgrName" queue manager case "$1" in 'start') su - mqm -c "cd /opt/mqm/bin; ./strmqm QMgrName" su - mqm -c "cd /opt/mqm/bin; ./strmqcsv QMgrName" su - mqm -c "cd /opt/mqm/bin; ./runmqchi -m QMgrName & " su - mqm -c "cd /opt/mqm/bin; ./runmqlsr -m QMgrName -t TCP -p 1414 & " ;; 'stop') su - mqm -c "cd /opt/mqm/bin; ./endmqm -i QMgrName" su - mqm -c "cd /opt/mqm/bin; ./endmqlsr -m QMgrName &" ;; *) echo "Usage: $0 { start | stop }" exit 1 ;; esac exit 0 ++++++++++++ End cut here +++++++++++++++++ Hope that helps. Regards, Roger Lacroix Capitalware Inc. http://www.capitalware.biz Quoting "Khedr, Hossam (GEI, MORT)" <[EMAIL PROTECTED]>: > It amazing how much I can learn from all of your questions and > comments. I was alerted through one of the questions to the use of MQ > MGR startup script. It sounds like a great idea. Dose anyone is open > t o share these kind of scripts here. It means a lot to a new MQer > like me. I appreciate all your comments and responses. Thanks, > Hossam Khedr > > Instructions for managing your mailing list subscription are provided > in the Listserv General Users Guide available at http://www.lsoft.com > Archive: http://vm.akh-wien.ac.at/MQSeries.archive > Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive This e-mail and any files transmitted with it, are confidential to National Grid and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please reply to this message and let the sender know. Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
