Skip to content
Browse files

add pills for server services

  • Loading branch information...
1 parent c55e17d commit 50ff651d3a792ccbea45a9e626455cde6c238a64 @jtimberman jtimberman committed
View
13 chef/templates/default/chef-server-webui.pill.erb
@@ -0,0 +1,13 @@
+Bluepill.application("chef-server-webui") do |app|
+
+ app.process("chef-server-webui") do |process|
+ process.pid_file = "<%= node[:chef][:run_path] %>/chef-server-webui.pid"
+ process.working_dir = "<%= node[:chef][:path] %>"
+ process.start_command = "env PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> -N -p <%= node[:chef][:webui_port] %> -e production -P <%= node[:chef][:run_path] %>/server-webui.%s.pid"
+ process.stdout = process.stderr = "<%= node[:chef][:log_dir] %>/server-webui.log"
+ process.start_grace_time = 5.seconds
+ process.stop_grace_time = 5.seconds
+ process.restart_grace_time = 30.seconds
+ end
+
+end
View
13 chef/templates/default/chef-server.pill.erb
@@ -0,0 +1,13 @@
+Bluepill.application("chef-server") do |app|
+
+ app.process("chef-server") do |process|
+ process.pid_file = "<%= node[:chef][:run_path] %>/chef-server.pid"
+ process.working_dir = "<%= node[:chef][:path] %>"
+ process.start_command = "env PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> chef-server -N -p <%= node[:chef][:server_port] %> -e production -P <%= node[:chef][:run_path] %>/server.%s.pid"
+ process.stdout = process.stderr = "<%= node[:chef][:log_dir] %>/server.log"
+ process.start_grace_time = 5.seconds
+ process.stop_grace_time = 5.seconds
+ process.restart_grace_time = 30.seconds
+ end
+
+end
View
13 chef/templates/default/chef-solr-indexer.pill.erb
@@ -0,0 +1,13 @@
+Bluepill.application("chef-solr-indexer") do |app|
+
+ app.process("chef-solr-indexer") do |process|
+ process.pid_file = "<%= node[:chef][:run_path] %>/chef-solr-indexer.pid"
+ process.working_dir = "<%= node[:chef][:path] %>"
+ process.start_command = "env PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> chef-solr-indexer"
+ process.stdout = process.stderr = "<%= node[:chef][:log_dir] %>/solr-indexer.log"
+ process.start_grace_time = 5.seconds
+ process.stop_grace_time = 5.seconds
+ process.restart_grace_time = 30.seconds
+ end
+
+end
View
13 chef/templates/default/chef-solr.pill.erb
@@ -0,0 +1,13 @@
+Bluepill.application("chef-solr") do |app|
+
+ app.process("chef-solr") do |process|
+ process.pid_file = "<%= node[:chef][:run_path] %>/chef-solr.pid"
+ process.working_dir = "<%= node[:chef][:path] %>"
+ process.start_command = "env PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin<% if node[:languages][:ruby][:gems_dir] %>:<%= node[:languages][:ruby][:gems_dir] %>/bin<% end -%> chef-solr"
+ process.stdout = process.stderr = "<%= node[:chef][:log_dir] %>/solr.log"
+ process.start_grace_time = 5.seconds
+ process.stop_grace_time = 5.seconds
+ process.restart_grace_time = 30.seconds
+ end
+
+end

0 comments on commit 50ff651

Please sign in to comment.
Something went wrong with that request. Please try again.