how to set httpd, cppop auto restart when they down?

anybody can tell me how to set
my linux server httpd, cppop, ftpd,cpsrvd etc can auto reboot when it's down.

i found that one of my server can send mail notify me my services is down and attempting to restart.. how to do it?

thank you.

 

 

 

 

Top