#!/usr/bin/env ruby $LOAD_PATH.unshift(File.expand_path("../../lib", __FILE__)) require 'daemonic' config = Daemonic.configuration(ARGV, Dir.pwd) config.reload if config.daemonize? Process.daemon end Daemonic.spawn(config)