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