February 19, 2010

Script to auto restart a service in linux

Hi All,
may i please know if a script can be written to check the log messages and automatically restart a service.

Thanks in advance

Regards,
Eajaz