find service stopped and run in redhat linux

Dear Experts:

I having redhat enterprise linux version 6 this is production server (Sugar CRM) implementer have done integration with the asterisk server (another server) we find ever day the asterisk service in the redhat enterprise linux that is CRM server gets stopped and and morning we need to manually start the asterisk service , while the service runs there is a log file generated in /var/log/asterisklogger.

1. Please suggest me how to fix this, is it possible to find the stopped service and the moment the service is found to stopped the same to be started immediately, please suggest how to do this.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

what are the entries in log file when it stops?

could also do a cron job to check if it is running and if not restart
Seth SimmonsSr. Systems AdministratorCommented:
that would be my suggestion also
you could write a small shell script to check if the process is running and if not, start it manually
The commands which you are executing manually, bundle them with absolute path and then put them in shell script


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.