Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Cron or running process?

by BuddhaNature (Beadle)
on Apr 30, 2004 at 17:05 UTC ( #349452=note: print w/replies, xml ) Need Help??


in reply to Cron or running process?

Well I am not sure it is 100% applicable to your situation, but you might want to check out Monit. It is what I like to call a gigantic if/then statement. Basically it is a program that will watch just about anything (a process, a file, a directory, a port, etc.) and will do something if anything changes about said watched "thing."

For instance, you have a daemon running (say sshd) and you want to make sure it keeps running - monit will periodically check that it is still running. If it goes down it can mail you and/or restart the daemon for you, or do just about anything else you want it to.

Maybe you need to keep an eye on a config file (like httpd.conf) so that if it changes you can restart a daemon automatically to make the changes live (like apache) - monit will do this for you.

Sorry if this sounds like a plug, but it is a nice program. Hope this helps.

-Shane

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://349452]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2022-11-26 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?