immutant.daemons

Asynchronous, highly-available services that share the lifecycle of
your application

Daemon

var

  
Functions for controlling a long-running service
Source

create

function
Usage: (create name daemon & {singleton :singleton, :or {singleton true}})
Start a daemon asynchronously, creating an MBean named by name,
invoking the stop function automatically at undeployment/shutdown.
If :singleton is truthy, the service will start on only one node in
a cluster
Source

daemonize

function
Usage: (daemonize name start-fn stop-fn & opts)
Convenience function for creating a daemon from a name and
start/stop functions
Source

start

function
Usage: (start daemon)
Start the service

stop

function
Usage: (stop daemon)
Stop the service
Based on a site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.