Author |
Message
|
Rahul999 |
Posted: Mon Nov 24, 2008 12:38 am Post subject: Automatic start of MQ/QueueMgr in HP-UX ? |
|
|
 Centurion
Joined: 14 Mar 2007 Posts: 134
|
Hello All,
Is there any way we can set the Queue manager so that it start automatically once the UNIX(HP-UX) server is rebooted.
I know there is a control parameter called StartType in windows which you can set to Automatic so that QM start once the Windows server is rebooted.
I was looking something like that in UNIX server, I know there are some startup/shutdown scripts you can write and put in UNIX server, but is there any configurable parameter in MQ/QM which we can set for automatic startup of Queue Manager.
Many Thanx !
Regards,
Rahul |
|
Back to top |
|
 |
Vitor |
Posted: Mon Nov 24, 2008 1:59 am Post subject: Re: Automatic start of MQ/QueueMgr in HP-UX ? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Rahul999 wrote: |
Is there any way we can set the Queue manager so that it start automatically once the UNIX(HP-UX) server is rebooted.
|
Yes, the same way as your site starts all the other processes on reboot. Speak to your local box admin for details of how they do it & what information you need to supply them to include the queue manager in the list. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Rahul999 |
Posted: Mon Nov 24, 2008 2:25 am Post subject: |
|
|
 Centurion
Joined: 14 Mar 2007 Posts: 134
|
Hi Vitor,
Box team will again ask for script to start it.
I am looking something which we can set independent of the box admin team.
Is there any parameter which we can set from MQ side ?
Regards,
Rahul |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Nov 24, 2008 6:05 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
There is nothing like that in MQ for Unix. You write a script, and the server guys set it up so your script gets called at the appropriate time after a reboot. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Nov 24, 2008 5:00 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
yes, its an initd (initialise daemon) script that has a standard arguments and a standard file name, which varies with different flavours of Unix. Here's a very simple example:
Quote: |
#!/sbin/sh
export PATH=/sbin:/usr/sbin:/usr/bin:/opt/mqm/bin
QMGRS=`( cd /var/mqm/qmgrs ; ls -d [a-zA-Z]* | tr ! . )`
case $1 in
start)
for QMGR in $QMGRS
do
su - mqm -c "strmqm ${QMGR}" >/dev/null 2>&1
done
;;
stop)
for QMGR in $QMGRS
do
su - mqm -c "endmqm ${QMGR}" >/dev/null 2>&1
done
;;
start_msg)
echo "Starting MQ"
;;
stop_msg)
echo "Stopping MQ"
;;
restart)
echo "$0 restart not implemented"
;;
status)
echo "$0 status not implemented"
;;
*)
echo "usage: $0 start|stop|start_msg|stop_msg|restart|status"
;;
esac
exit 0 |
_________________ Glenn |
|
Back to top |
|
 |
|