Author |
Message
|
chenna.hari |
Posted: Fri Aug 13, 2010 1:39 am Post subject: Need help to Terminate runmqtrm trigger monitor in Linux |
|
|
Centurion
Joined: 21 Mar 2009 Posts: 103
|
Hi,
we have the Queue on which Trigger monitor is enabled. I need to run the command runmqtrm to start triggering in terminal in linux.
Can any one help how to terminate the trigger monitor runmqtrm command in a terminal in Linux |
|
Back to top |
|
 |
zonko |
Posted: Fri Aug 13, 2010 2:28 am Post subject: |
|
|
Voyager
Joined: 04 Nov 2009 Posts: 78
|
Press CTRL-C on the console on which the trigger monitor is running
OR
Set the initq to GET(DISABLED) |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Aug 13, 2010 2:31 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Or 'kill'.
I forget if runmqtrm honors MQFB_QUIT out of the box or not. not a hard change to make, though. |
|
Back to top |
|
 |
chenna.hari |
Posted: Fri Aug 13, 2010 6:18 am Post subject: |
|
|
Centurion
Joined: 21 Mar 2009 Posts: 103
|
iam running runmqtrm in /opt/mqm/bin/ in linux terminal
the command is
runmqtrm -m Queuemanager -q initiationqueue
so do i need to press CTRL+C key to terminate this process?????
Please kindly confirm. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Aug 13, 2010 8:50 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
The trigger monitor should be run as a background process.
You can get the QMGR to do it for you by the appropriate config commands.
OR you can start it yourself as you have done.
However the example you gave will run it as a 'foreground' process.
Just re run the command again and put an & (ampersand) character at the end of the command.
Then it will sit in the background until you logout. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
chenna.hari |
Posted: Fri Aug 13, 2010 10:03 am Post subject: |
|
|
Centurion
Joined: 21 Mar 2009 Posts: 103
|
Thanks.
so do i need to run the command in a terminal as below?
runmqtrm -m Queuemanager -q initiationQueue &
and i dont want this command to be terminated if i logout, this command should be run always.
do i need to kill the runmqtrm process if i want to stop and start the Queuemanager??
and also can you please tell how can i kill this runmqtrm. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Aug 13, 2010 10:31 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Which is why you can set the Trigger Monitor up us a servce in the QM.
Back in the old days there were lots of issues about things like this. If you search the MQ forums here you will find them in all their glory.
What you want is really how the QM processes themselves run.
Your Linux SysAdmin should be able to help you start the Trigger Monitor off if you don't want to run it in the QM Context. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Aug 13, 2010 11:09 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
mods please move this to a different forum, it's not a Broker question.
chenna.hari - you really do need to be discussing this with your systems administration team. They are in a much better position to assist you with this than we are, in particular with explaining how unix shells work and how to manage long running processes. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Aug 13, 2010 12:48 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
when you shut down the qmgr the trigger monitor will shutdown automatically. Same thing if you set the trigger monitor queue to get disabled.
runmqtrm is a well behaved program...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|