Sha256: 40a85d0a8913d03c60abf0974bad29d91c5500bd4c9803c571078c87c4ed9a24

Contents?: true

Size: 751 Bytes

Versions: 3

Compression:

Stored size: 751 Bytes

Contents

Bluepill.application("nginx", :log_file => "<%= node['nginx']['log_dir'] %>/bluepill-nginx.log") do |app|
  app.process("nginx") do |process|
    process.pid_file           = "<%= node['nginx']['pid'] %>"
    process.working_dir        = "<%= node['nginx']['source']['prefix'] %>"
    process.start_command      = "<%= node['nginx']['binary'] %> -c <%= node['nginx']['dir'] %>/nginx.conf"
    process.stop_command       = "kill -QUIT {{PID}}"
    process.restart_command    = "kill -HUP {{PID}}"
    process.daemonize          = true
    process.stdout             = process.stderr = "<%= node['nginx']['log_dir'] %>/nginx.log"

    process.monitor_children do |child_process|
      child_process.stop_command = "kill -QUIT {{PID}}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
from-scratch-0.7.0 cookbooks/nginx/templates/default/nginx.pill.erb
from-scratch-0.6.0 cookbooks/nginx/templates/default/nginx.pill.erb
from-scratch-0.5.0 cookbooks/nginx/templates/default/nginx.pill.erb