Please update inittab/rc.shutdown/rc scripts to start/stop mqm (need help Urgent)

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

Everyone at the UNIX and Linux Forums gives their best effort to reply to all questions in a timely manner. For this reason, posting questions with subjects like "Urgent!" or "Emergency" and demanding a fast reply are not permitted in the regular forums.

For members who want a higher visibility to their questions, we suggest you post in the Emergency UNIX and Linux Support Forum. This forum is given a higher priority than our regular forums.

Posting a new question in the Emergency UNIX and Linux Support Forum requires forum Bits. We monitor this forum to help people with emergencies, but we do not not guarantee response time or best answers. However, we will treat your post with a higher priority and give our best efforts to help you.

If you have posted a question in the regular forum with a subject "Urgent" "Emergency" or similar idea, we will, more-than-likely, close your thread and post this reply, redirecting you to the proper forum.

Of course, you can always post a descriptive subject text, remove words like "Urgent" etc. (from your subject and post) and post in the regular forums at any time.

Thank you.

The UNIX and Linux Forums

First of all - an entry in /etc/inittab will start but not stop your application - so forget about it.

The proper way is to create a script in /etc/rc.d/init.d - you can call it for example mqm.
The content of the script is basically what you have posted in your own thread. Make it executable and writable for the mq group. Than create links to this script in /etc/rc.d/rc2.d ...

cd /etc/rc.d/rc2.d 
ln -s /etc/rc.d/init.d/mqm S99mqm ; ln -s /etc/rc.d/init.d/mqm K48mqm

and you are done.

Kind regards
zxmaus