cron script to verify application is running?
Is there a built in device to verify an application is running, and if it is not running, to spit out an error to syslog or better yet restart it? I have a business critical app that dropped on me the other night and didn't run over the weekend.
If there isn't a built in device can anyone point me in the right direction on how I would go about scripting something like this? Thanks in advance, L |
is something as basic as
Code:
if [ `pidof -s applicationnamehere` ] |
Hmm, thanks for the input, but I just stopped the app and ran the check and it still said it was running.
|
Lookup "monit" at Freshmeat. It can do different kind of checks, pids, ports, sockets.
|
Quote:
|
All times are GMT -5. The time now is 05:08 PM. |