HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

rc script required to shutdown Websphere

 
jaivinder
Frequent Advisor

rc script required to shutdown Websphere

Hi Gurus,

Recently we got a request from the user asking us to created a rc script for the WebSphere MQ servers so the MQ servers will shut down cleanly when these UNIX boxes are brought down.
The box model is rp3440 and running on HPUX 11iV2.Can anybody help me in this regard.

Thanks in advance
Jaivinder

7 REPLIES
Rahul Tiwari
Advisor

Re: rc script required to shutdown Websphere

HI Jaivender ,

endmqm -i , put this in one of the rc script and you are done.
Rahul Tiwari
Advisor

Re: rc script required to shutdown Websphere

use dspmq before that for displaying the qmanager and then use normal process of adding a shutdown script to rc.
James R. Ferguson
Acclaimed Contributor

Re: rc script required to shutdown Websphere

Hi:

Use the '/sbin/init.d/template' as the starting point for the startup and shutdown commands you will need to run.

The excellent, still valid whitepaper will provide the information you need to understand the HP-UX startup/showdown 'rc' script process:

http://www.docs.hp.com/en/934/startup.pdf

The manpages for 'rc(1M)' are another source of the bulk of this information:

http://www.docs.hp.com/en/B3921-60631/rc.1M.html

Regards!

...JRF...
jaivinder
Frequent Advisor

Re: rc script required to shutdown Websphere

Hi,

I have just got the requirement. I need a rc script to run in run level 3. It should call the /opt/mqm/bin/mq_qm_rc_script with start option, and the kill rc script should be executed in run level 2, and it should be done calling the /opt/mqm/bin/mq_qm_rc_script with stop option. Please help us so that we can prepare the rc scripts for startup and stop of the Websphere MQ.

Re: rc script required to shutdown Websphere

>I need a rc script to run in run level 3. It should call the /opt/mqm/bin/mq_qm_rc_script with start option, and the kill rc script should be executed in run level 2 ...

With this info and JRF's URLs, you have everything you need.

You first have to decide on the name of you script and the name of the two symlinks (S* & K*) and rc directories.

You should be able to just copy /sbin/init.d/template and plunk in "/opt/mqm/bin/mq_qm_rc_script $1" in two places.

Re: rc script required to shutdown Websphere

>plunk in "/opt/mqm/bin/mq_qm_rc_script $1" in two places.

Right after:
# Execute the commands to start your subsystem
Tingli
Esteemed Contributor

Re: rc script required to shutdown Websphere

You also need to create file /etc/rc.config.d/mqm which will be similar other /etc/rc.config/files for start and shutdown control.

Meanwhile, the start file and shutdown file in rc2.d and rc3.d, it is better you have the sum of the numbers to be 1000. Not enforced but mentioned in some sort textbook.