Automatic start of a WebSphere Windows service
I have tried all the solutions I have found in Google and StackOverflow to auto start a Windows service.
Here's my problem:
I have registered my WebSphere application server instance as a service. I'm able to stop & start the WebSphere using service. I set auto start using recovery from service properties. (changed service to Automatic & also checked with Automatic delayed)
When I terminate the process id, service is not getting started automatically as expected.
Can anyone please explain clearly what else to do?
You need a manager service working like websphere node agent. You can write a script about checking status of application server service in a fixed time interval. Then install script as a windows service. If somehow service of application server is not running, the script starts it again.
The "Automatic" setting for Windows services will simply start the service when the computer starts up. It doesn't keep track of all services and restart them should they stop on their own. You'd need a watchdog process to monitor your service.
The Recovery tab as I understand only functions if the service itself fails to start for whatever reason and not if it stops on its own after it was successfully started.