Hi,
How do we use EVENT ID as a trigger to restart a particular service that stopped.
Event ID as a trigger
Event ID as a trigger
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
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