script to check services and restart if needed?

Today first my mysql service stoped it self for no reasen that i can think off. then dns service did the same.

sserver is up for 21 days

fedora core 1, ensim, celeron 2.8,256 ram...server load 0.4

why did this happen? how can i find out?

i tryed searching for mysql log but i can not find it.

is there some script thet will check all services every 15 minutes and restart if needed?

 

 

 

 

Top