This repository has been archived by the owner on Apr 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
alphagov/daemonette
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
DEPRECATED
==========
This repository is no longer maintained.
Daemonette
==========
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
-------------
Daemonette.run("foo") do
# Your endlessly-running job here
end
After deployment:
Daemonette.run("foo") do
# Your endlessly-running job here
end
(I.e. the same thing.) The first job will be killed before the second is run.
About
Daemonise a block, supplanting any previous incarnation
Topics
Resources
Code of conduct
Security policy
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published