Sha256: ae7bae35cd52275a31a32b23db0e0beafadb9bb38f9a4faaae8acb49e03134f8

Contents?: true

Size: 932 Bytes

Versions: 36

Compression:

Stored size: 932 Bytes

Contents

Bluepill.application("<%= app %>", :foreground => false, :log_file => "/var/log/bluepill.log") do |app|

  app.uid = "<%= user %>"
  app.gid = "<%= user %>"

<% engine.each_process do |name, process| %>
<% 1.upto(engine.formation[name]) do |num| %>
  <% port = engine.port_for(process, num) %>
  app.process("<%= name %>-<%= num %>") do |process|
    process.start_command = %Q{<%= process.command %>}

    process.working_dir = "<%= engine.root %>"
    process.daemonize = true
    process.environment = <%= engine.env.merge("PORT" => port.to_s).inspect %>
    process.stop_signals = [:quit, 30.seconds, :term, 5.seconds, :kill]
    process.stop_grace_time = 45.seconds

    process.stdout = process.stderr = "<%= log %>/<%= app %>-<%= name %>-<%= num %>.log"

    process.monitor_children do |children|
      children.stop_command "kill {{PID}}"
    end

    process.group = "<%= app %>-<%= name %>"
  end
<% end %>
<% end %>
end

Version data entries

36 entries across 36 versions & 5 rubygems

Version Path
foreman-0.88.1 data/export/bluepill/master.pill.erb
fiveman-0.1.1 data/export/bluepill/master.pill.erb
fiveman-0.1.0 data/export/bluepill/master.pill.erb
overman-0.87.3 data/export/bluepill/master.pill.erb
foreman-0.87.2 data/export/bluepill/master.pill.erb
foreman-0.87.1 data/export/bluepill/master.pill.erb
ypadlyak-foreman-0.85.0 data/export/bluepill/master.pill.erb
ypadlyak-foreman-0.81.0 data/export/bluepill/master.pill.erb
foreman-0.87.0 data/export/bluepill/master.pill.erb
foreman-0.86.0 data/export/bluepill/master.pill.erb
foreman-0.85.0 data/export/bluepill/master.pill.erb
foreman-0.84.0 data/export/bluepill/master.pill.erb
foreman-0.83.0 data/export/bluepill/master.pill.erb
foreman-systemd-0.78.0 data/export/bluepill/master.pill.erb
foreman-0.82.0 data/export/bluepill/master.pill.erb
foreman-0.81.0 data/export/bluepill/master.pill.erb
foreman-0.80.2 data/export/bluepill/master.pill.erb
foreman-0.80.1 data/export/bluepill/master.pill.erb
foreman-0.80.0 data/export/bluepill/master.pill.erb
foreman-0.78.0 data/export/bluepill/master.pill.erb