Process Agent
Hi all,
I have configured SQL service group. I need a restart 1C application server after failover accours. For this purpose I will use script. The script will done 1 time after service group become online.
I think process agent can help me.
For test and understand how work proces agent I create easy bat script:
{ echo Hello > File.txt
}
When I do online for agent I see script is done (file File.txt is created) but the agent do not became online.
I think script have to send any variable to VCS that VCS can know started programm is "UP".
Do I correct understand situation and if YES what script must return to VCS?
For what you want to do it sound likes it would be better to use postonline trigger script which involves
Creating postonline batch or perl file in cluster server triggers directory and the script will need an if statement to say only run for the required service group (service group is passed as an argument to postonline script).
To use process agent, you would need to create a lock file, so logic of scripts would be:
StartProgram - Create a lock file and restart 1C application server
MonitorProgram - Check log file exists and exit return code 110 if exists and 100 if it does not
Stop Program - Remove lock fileMike