Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple process monitor -

Used to check if a process is running - if it insn't execute some ruby code

see ./bin/hamster –help for all the arguments that it takes

hamster –callback “%x{echo ”Rails is Dead“ | mail -s rails_is_dead me@ram9.cc}” –watch ‘Rails:’ –callback-message ‘emailing you some fyi’ –delay 1

samples.

Put this in a cronjob to run every minute and you have a very simple, robust way to detect missing jobs

This is not a replacement for more robust excellent froody things like Daemontools - but it is a simple way to
make sure a important background job is running in userland - without muking about with root

Copyright © 2011 Curtis Schofield. See LICENSE for details.

About

Cron + Restart - Keep services running in a simple way

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages