Video Screencast Help

Which Resource should I use

Created: 27 Sep 2012 • Updated: 28 Sep 2012 | 2 comments
This issue has been solved. See solution.

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

 

Discussion Filed Under:

Comments 2 CommentsJump to latest comment

mikebounds's picture

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 stop
     program.
■ monitor—Verifies the status of the process, or starts the process configured
     as the monitor program.
and make the resource dependent on your application resource if you want it to stop before your application

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

SOLUTION
Satish K. Pagare's picture

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.