]> git.openstreetmap.org Git - rails.git/blob - lib/daemons/session_cleanup_ctl
f421370fdbe4bf55e88b5a237cb94d6008cba4e6
[rails.git] / lib / daemons / session_cleanup_ctl
1 #!/usr/bin/env ruby
2 require 'rubygems'
3 require "daemons"
4 require 'yaml'
5 require 'erb'
6 require 'active_support'
7
8 options = YAML.load(
9   ERB.new(
10   IO.read(
11   File.dirname(__FILE__) + "/../../config/daemons.yml"
12   )).result).with_indifferent_access
13 options[:dir_mode] = options[:dir_mode].to_sym
14
15 Daemons.run File.dirname(__FILE__) + '/session_cleanup.rb', options