Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (20 sloc) 678 Bytes
This repository is no longer maintained.
Daemonette runs a block of code as a daemon, with one additional feature: if
another block with the same name is already running, it will be killed before
running the new block.
Old processes are killed by sending SIGHUP. If after a reasonable period (20s),
the process has not gone away, SIGKILL is sent.
How to use it
-------------"foo") do
# Your endlessly-running job here
After deployment:"foo") do
# Your endlessly-running job here
(I.e. the same thing.) The first job will be killed before the second is run.