openstreetmap-website/lib/daemons/gpx_import.rb
2006-12-01 12:06:38 +00:00

19 lines
No EOL
365 B
Ruby
Executable file

#!/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 << "This daemon is still running at #{Time.now}.\n"
sleep 10
end