#!/usr/bin/env ruby # You might want to change this ENV["MERB_ENV"] ||= "production" require File.dirname(__FILE__) + "/../../config/environments" $running = true Signal.trap("TERM") do $running = false end while($running) do # Replace this with your code Merb.logger.info("This daemon is still running at #{Time.now}.\n") sleep 10 end