mokkan
10 years agoLevel 6
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
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.