Sha256: 703ebffe13fadf4cc189258f1b3ee7c0b2d5630d01b468df935637ec4335db11

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 Bytes

Contents

#!/usr/bin/env ruby

# You might want to change this
ENV["RAILS_ENV"] ||= "production"

require File.dirname(__FILE__) + "/../../config/environment"

$running = true
Signal.trap("TERM") do 
  $running = false
end

while($running) do
  
  # Replace this with your code
  ActiveRecord::Base.logger.info "This daemon is still running at #{Time.now}.\n"
  
  sleep 10
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
khelben-daemon_generator-0.1.1 generators/daemon/templates/script.rb