HI i need help from seniors on this issue, i need to know how to do this, i need to update 50+ server starting saturday. below is the ticket which i have with full description.
Currently MQ Series must be stopped before and started after any reboot. Not having the start/stop as part of the server init scripts leaves a large exposure, should the application fail to be stopped during VM patching or should the server reboot due to hardware or other issues. Of course, we understand the init/rc scripts will likely not be executed should the server crash, but that is a known risk.
We have suggested the entries to add and the username under which to run the scripts below. The scripts themselves will be owned and maintained by the middleware team (SC AG = mls-flwdw-wmq). Whether it's best to add them to the inittab/rc.shutdown or to the rc scripts we leave to you. Please let us know if you have any questions or concerns. Many thanks!
NOTE: Existing ibmmq references in the init/rc scripts can be removed/disabled.
During server shutdown/reboot please ensure that the following is one of the first things that is shut down. It must definitely be done before file system umount or other standard OS servcies are stopped and the host is taken off the network.
As username mqm: ~mqm/.OSinit/MQinit -stop (~mqm refers to the mqm home directory, usually /home/mqm)
If you need to create a wrapper script in the rc scripts for root to run this as mqm, contents of that script similar to the following should work:
su - mqm -c ~mqm/.OSinit/MQinit -stop
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
During server startup/boot/reboot please ensure that the following is run sometime after the OS services start and all file systems are mounted:
As username mqm: ~mqm/.OSinit/MQinit -start (Again, ~mqm references the mqm home directory)
If you need to create a wrapper script in the rc scripts for root to run this as mqm, contents of that script similar to the following should work:
su - mqm -c ~mqm/.OSinit/MQinit -start