How to automatically restart service when it stops
Posted on 2012-08-20
I am looking for solution to my problem. Due to some error in Java Virtual Machine / Application Server, JBoss AS service stops (java crashes) randomly. It occurs like once in a month, usually in the night. As it is very important service, it needs to be started immediately after stop. I tried "recovery" tab in service properties (first failure: "restart the service"), but it doesn't work for me. In the event viewer this crash is just simple event "JBoss service entered the stopped state", probably that's why recovery does not help.
Any hints what can be done?