Author |
Message
|
Frnd |
Posted: Tue Nov 27, 2007 4:10 am Post subject: To start a trigger monitor as a MQ service. |
|
|
Apprentice
Joined: 04 Jun 2007 Posts: 33
|
Hi
I am trying to automate the process of starting the trigger monitor by adding it as a MQ service.
I created a service with the below command
DEFINE SERVICE ('INIT') +
DESCR(' ') +
STARTCMD('/usr/mqm/bin/runmqtrm') +
STARTARG('-m +myqmgr+ -q INITQ') +
STOPCMD('/usr/mqm/bin/amqsstop') +
STOPARG('-m +myqmgr+ -p +2563142+') +
STDOUT(home/tm_out') +
STDERR('/home/tm_err') +
CONTROL(QMGR) +
SERVTYPE(SERVER) +
REPLACE
But when I started and stopped the queuemanager , it didn't get started. Is there anything I'm missing out .
I'm using AIX and MQV 6.0 |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 27, 2007 4:15 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Does it start if a START SERVICE command is issued manually?
Are there any log entries regarding the service indicating why it doesn't start?
Does an equivalent trigger monitor start if run from a command prompt or as a demon process? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Nov 27, 2007 6:02 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20763 Location: LI,NY
|
This looks like a UNIX process.
in your start arg at the end add ' &' to put service process in the background like you would normally do from the command prompt.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Frnd |
Posted: Tue Nov 27, 2007 7:15 am Post subject: |
|
|
Apprentice
Joined: 04 Jun 2007 Posts: 33
|
PFB the responses.
Does it start if a START SERVICE command is issued manually?
Yes
Are there any log entries regarding the service indicating why it doesn't start?
No
Does an equivalent trigger monitor start if run from a command prompt or as a demon process?
Yes.
Is there something else I need to check. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 27, 2007 7:21 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Then I'd try the & suggested by my most worthy associate.
Then I'd try applying maintenance if by v6 you mean v6.0.0.0 - you should be on v6.0.2 at least.
After that it's PMR time.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|