Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

alphagov/daemonette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

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

No packages published

Languages