Page 1 of 1
Event ID as a trigger
Posted: Sun Dec 14, 2008 5:59 pm
by robotask846
Hi,
How do we use EVENT ID as a trigger to restart a particular service that stopped.
Event ID as a trigger
Posted: Mon Dec 15, 2008 1:02 am
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