Ragnar Beer (rbeer@uni-goettingen.de) wrote:
> For reasons beyond my comprehension my MySQL daemon crashed a while
> ago. So did the Apache daemon but that's more than a year ago.
> That's not bad - 2 crashes in three years, is it? The problem is
> that with this superior stability I get lulled and those two crashes
> produced unnecessarily long downtimes of the website. I heard about
> daemontools but I followed the 'DJB's ports removed' thread and so
> they're not an option anymore.
> What are the alternatives? It would be especially interesting to
> have a solution that not only checks whether or not a daemon has
> died but also whether or not it behaves as it should (e.g. by
> sending a query and comparing the result with a stored one).
The only thing I can think off is cron script that checks if the
server is running and if not restarts it and sends a message to the
admin.
Cya, Han.
|