Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What are your thoughts on using any kind of service monitoring to auto restart services that failed?
Is monit a good solution?

share|improve this question

closed as off-topic by mdpc, HBruijn Dec 4 '15 at 10:54

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

Well, I think in general monitoring is an extremely good idea. Auto-restart, however, needs to be implemented carefully. Depending on your application, there are likely services that need to be started up in a certain order. This logic needs to be built into your auto-restart routines so that things come up and get shut down in a healthy state. Also, included in your logic needs to be some limit on the number of times it will try and restart a service in a certain time period. If something makes a service fail in such a way that manual intervention is required, you don't want monit to be constantly trying to restart things every 10 seconds.

All in all, whether or not this is a good idea depends completely on your requirements and your environment.

share|improve this answer
Is there anything packaged with Ubuntu server that you know of that handles auto restart of service? – Webnet Aug 17 '10 at 13:52
@Webnet, yes monit is included in ubuntu. – EEAA Aug 17 '10 at 15:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.