cancel
Showing results for 
Search instead for 
Did you mean: 

cluster and application agent question

Hello,

 

I am using the start program to run two commands. Is it possible to do? It is not working. Anything wrong with this command?

 

startProgram = touch  /tmp/success.lock ;/opt/dr/scripts/script.ksh

1 Solution

Accepted Solutions
Accepted Solution!

OK:  I just tried that and

OK:  I just tried that and the answer was immediately obvious from the VCS engine log:

2015/03/28 18:46:46 VCS NOTICE V-16-1-10301 Initiating Online of Resource kjb_app (Owner: unknown, Group: kjb) on System agbc62
2015/03/28 18:46:46 VCS ERROR V-16-10001-2 (agbc62) Application:kjb_app:online:Program (touch) does not exist or is not executable

That is it is saying that it could not find "touch" to execute -- So I figured it needed the entire path, and so I redefined the StartProgram as:

hares -modify kjb_app StartProgram "/usr/bin/touch /tmp/j; /var/tmp/FSC/testApp/kjbStart.sh"

And that worked fine...

So, don't forget to check the VCS engine log when things don't work.

 

View solution in original post

2 Replies

What error are you getting

What error are you getting when you try to online the resource?

Is the  /tmp/success.lock file getting created?

 

Accepted Solution!

OK:  I just tried that and

OK:  I just tried that and the answer was immediately obvious from the VCS engine log:

2015/03/28 18:46:46 VCS NOTICE V-16-1-10301 Initiating Online of Resource kjb_app (Owner: unknown, Group: kjb) on System agbc62
2015/03/28 18:46:46 VCS ERROR V-16-10001-2 (agbc62) Application:kjb_app:online:Program (touch) does not exist or is not executable

That is it is saying that it could not find "touch" to execute -- So I figured it needed the entire path, and so I redefined the StartProgram as:

hares -modify kjb_app StartProgram "/usr/bin/touch /tmp/j; /var/tmp/FSC/testApp/kjbStart.sh"

And that worked fine...

So, don't forget to check the VCS engine log when things don't work.

 

View solution in original post