CONFIG = <%= config %> PID_PATH = CONFIG LOG_PATH = CONFIG
Eye.config do
logger "#{CONFIG[:logfile_path]}/eye.log"
end
Eye.application :sweatshop_gears do
trigger :flapping, times: 10, within: 1.minute, retry_in: 10.minutes check :cpu, every: 10.seconds, below: 100, times: 3 working_dir CONFIG[:working_path] <% services.each_with_index do |service, index| %> process :'<%= service %>' do pid_file "#{PID_PATH}/gears/<%= service %>.pid" stdall "#{LOG_PATH}/gears/<%= service %>.log" start_command "<%= services_path %>/<%= service %>/<%= service %> <%= first_port+index %>" daemonize true end <% end %>
end