Report abuse


			
[hjk-adam@ops1]% cat iclassify.yml                           /etc/mongrel_runit
---
port: 5000
servers: 5
environment: production
cwd: /srv/iclassify
runit_sv_dir: /etc/sv
runit_service_dir: /var/service
application_name: iclassify
user: apache
group: apache
env_vars:
  PATH: /var/lib/gems/1.8/bin:$PATH
  RUBYLIB: 

[hjk-adam@ops1]% cat mongrel-puppetmasterd.yml               /etc/mongrel_runit
---
port: 18140
servers: 5 
environment: production
cwd: /etc/puppet
runit_sv_dir: /etc/sv
runit_service_dir: /var/service
application_name: puppetmaster
user: puppet
group: puppet
svwait: 30
command_line: "puppetmasterd --no-daemonize --verbose --masterport=#{@config['port']} --servertype mongrel"
checkfile: |
 #!/usr/bin/env ruby

 require 'net/http'

 http = Net::HTTP.new('#{@config['address']}', #{@config['port']})
 begin
   response = http.options('/')
   if response = Net::HTTPMethodNotAllowed
     exit 0
   else 
     exit 1
   end
 rescue Errno::ECONNREFUSED
   exit 1
 end
env_vars:
  PATH: /var/lib/gems/1.8/bin:$PATH