Initial Chef repository
This commit is contained in:
15
cookbooks/nginx/templates/default/nginx.pill.erb
Normal file
15
cookbooks/nginx/templates/default/nginx.pill.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user