Sha256: 20f79d956993506691ad0ab69574f7a062470d9017fa717e447113742c3f8987

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

God.watch do |w|
  w.name = "apache2"
  w.interval = 30.seconds # default
  w.start = "<%= @params[:start] %>"
  w.stop = "<%= @params[:stop] %>"
  w.restart = "<%= @params[:restart] %>"
  w.start_grace = 10.seconds
  w.restart_grace = 10.seconds
  w.pid_file = "/var/run/apache2.pid"
  w.behavior(:clean_pid_file)

  w.start_if do |start|
    start.condition(:process_running) do |c|
        c.interval = 5.seconds
        c.running = false
        c.notify = 'admin'
    end
  end
end

Version data entries

4 entries across 3 versions & 3 rubygems

Version Path
agile_solo-0.1.0 spec/chef_repo/cookbooks/apache2/templates/default/apache2.god.erb
vagrant-managed-servers-0.1.0 cookbooks/apache2/templates/default/apache2.god.erb
vagrant-openstack-0.0.4 tmp/librarian/cache/source/chef/site/877777683730772c36b1e6a3fc3aa2c3/apache2/version-uri/a7ab7e6a4c7e38e585540241cf05880e/package/templates/default/apache2.god.erb
vagrant-openstack-0.0.4 cookbooks/apache2/templates/default/apache2.god.erb