cancel
Showing results for 
Search instead for 
Did you mean: 

Which Resource should I use

mhab11
Level 5

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

mikebounds
Level 6
Partner Accredited

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

View solution in original post

2 REPLIES 2

mikebounds
Level 6
Partner Accredited

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

Satish_K__Pagar
Level 5
Employee

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.