Hello,
I've one alert for specific event id, if that event triggers particular custom service needs to be restarted. Actually the service will be is running state only during the event triggered need to create recovery task to restart the service.
I created two recovery task:
1. STOP service: in path: c:\windows\system32\net.exe
parameters: STOP <ServiceName>
2. START service: in path: c:\Windows\System32\net.exe
Parameters: START <ServiceName>
But the above tasks seems to be not working perfectly. sometime START task is starting first and it threw output service is already running. Then STOP task starts and it stops the service.
How can i achieve restart the service using the Recovery tab?
Regards,
Vijay