Script to auto restart a service

Hi All,
May i please know if it is possible to write a script to check the log messages and automatically restart a service if it is failed or it is stopped.

Appreciate your suggestions.

Thanks in advance.

regards,
Eajaz

Yes, it is possible.

Thanks fpmurphy...i will try to find out such scripts..iam very new to the Linux admin role.:frowning: