09-27-2012 11:42 AM
In my test bed I have a script that simulated messages from the feild. It is a very basic script, but I learned the other day when I perform a switch while the script is running bad things happen.
How do I add this script as a resource, what resource do i use, so that when I do a switch it will close the script first before trying to offline the application?
SFWHA 5.1 SP2 W2008r2
Solved! Go to Solution.
09-27-2012 01:05 PM
You can use the Process agent - see extract from the VCS Bundled agent guide:
■ online—Starts the process configured as the start program.■ offline—Terminates the process, or starts the process configured as the stopprogram.■ monitor—Verifies the status of the process, or starts the process configuredas the monitor program.
Mike
09-27-2012 01:05 PM
You can use the Process agent - see extract from the VCS Bundled agent guide:
■ online—Starts the process configured as the start program.■ offline—Terminates the process, or starts the process configured as the stopprogram.■ monitor—Verifies the status of the process, or starts the process configuredas the monitor program.
Mike
09-27-2012 09:31 PM
Another thing that you could try is:
In the offline and clean program of your Application resource, make sure that the script program gets terminated before executing offline of the Application. You may have to script this.