Event ID as a trigger

Discuss RoboTask here
Post Reply
robotask846
Posts: 7
Joined: Mon Oct 20, 2008 8:21 am

Event ID as a trigger

Post by robotask846 »

Hi,
How do we use EVENT ID as a trigger to restart a particular service that stopped.
 
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Event ID as a trigger

Post by Oleg »

Did you mean EVENT ID in the system log?
Unfortunately RoboTask doesn't contain actions in order to work with system log directly as yet.

If you want to restart the stopped service only, you can try to start the service periodically (e.g. each 30 sec)
If service is already started then you get warning in the task log, like this:
W: 15.12.2008 11:53:50: An instance of the service is already running.

Also you can check the existence some executable in memory. See variable {IsProcessExists()}
You task will be like this:

if {IsProcessExists(MyServiceApp.exe)} = FALSE then
   Start Service
end if
Post Reply