Setup a automatic server reboot on when a particular service fails
- by user1179459
I am running linux based server (centos 6.0) with cpanle and WHM,
I have critical website running with a chat server which uses a openfire as the chat server backend server, i have monitored last few weeks this service crashes quite often, i have no way of knowing that, and i have to wait till the next day to restart the server. (and this can only be fixed by using server reboot as its got to do with some java memory problem)
is there a way i can setup a monitoring service to the server and if this service goes down server itself will reboot ?
is this something possible or is there a better way to overcome this problem ?