[prev in list] [next in list] [prev in thread] [next in thread] 

List:       veritas-ha
Subject:    RE: [Veritas-ha] resource getting online on both nodes within clu ster
From:       Asim Zuberi <asim () colltech ! com>
Date:       2000-11-01 16:35:12
[Download RAW message or body]

Jim:

Thanks for your quick and accurate response. You're right that my monitor
script was
getting a return code of 110. Anyway, I fixed that, and now the resource
seems to be
working just fine. 

However, along the same lines, I have another question...

I need to start a process thru VCS. From the command line it works just
fine and once executed,
I do get return code "0", but for some reason thru the "online" script it
doesn't give
me return code "0", therefore VCS waits for the resource to come online
(whereas in reality
process does starts).

here is the process I want to start thru VCS. It does RC=0 (when gets
executed thru the command
line).

su - bbro -c \
"(/bin/sh /export/home/bbro/BB/bin/bbrun-vcs.sh
/export/home/bbro/BB/ext/bb-mercator.sh)&"



here is my online script
========================

ProcessOwner=$2
BBRunScript=$3
BBApplicationScript=$4

su - $ProcessOwner -c "(/bin/sh $BBRunScript $BBApplicationScript)&"
exit $?

here is my resource
===================

RESapps_bbmqm_proc ProcessOwner        global    bbro
RESapps_bbmqm_proc BBRunScript         global  
/export/home/bbro/BB/bin/bbrun-vcs.sh
RESapps_bbmqm_proc BBApplicationScript global  
/export/home/bbro/BB/ext/bb-mqm.sh


thanks for your help,

Asim;



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic