daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Sep 24th, 2018 64 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. Bluepill.application("chef-server") do |app|
  2.   BIN_PATH = "/usr/local/ruby/bin"
  3.  
  4.   app.process("expander") do |process|
  5.     process.pid_file = "/var/run/chef-expander.pid"
  6.     process.working_dir = "/var/lib/chef"
  7.  
  8.     process.start_command = "#{BIN_PATH}/chef-expander -P /var/run/chef-expander.pid -n1"
  9.     process.stdout = process.stderr = "/var/log/chef/expander.log"
  10.  
  11.     process.start_grace_time = 10.seconds
  12.     process.stop_grace_time = 10.seconds
  13.     process.restart_grace_time = 20.seconds
  14.  
  15.     process.daemonize = true
  16.   end
  17.  
  18.   app.process("server") do |process|
  19.     process.pid_file = "/var/run/chef-server.pid"
  20.     process.working_dir = "/var/lib/chef"
  21.  
  22.     process.start_command = "#{BIN_PATH}/chef-server -P /var/run/chef-server.pid"
  23.     process.stdout = process.stderr = "/var/log/chef/server.log"
  24.  
  25.     process.start_grace_time = 10.seconds
  26.     process.stop_grace_time = 10.seconds
  27.     process.restart_grace_time = 20.seconds
  28.  
  29.     process.daemonize = true
  30.   end
  31.  
  32.   app.process("solr") do |process|
  33.     process.pid_file = "/var/run/chef-solr.pid"
  34.     process.working_dir = "/var/lib/chef"
  35.  
  36.     process.start_command = "#{BIN_PATH}/chef-solr -P /var/run/chef-solr.pid"
  37.     process.stdout = process.stderr = "/var/log/chef/solr.log"
  38.  
  39.     process.start_grace_time = 10.seconds
  40.     process.stop_grace_time = 10.seconds
  41.     process.restart_grace_time = 20.seconds
  42.  
  43.     process.daemonize = true
  44.   end
  45.  
  46.  
  47.   app.process("server-webui") do |process|
  48.     process.pid_file = "/var/run/chef-server-webui.pid"
  49.     process.working_dir = "/var/lib/chef"
  50.  
  51.     process.start_command = "#{BIN_PATH}/chef-server-webui -P /var/run/chef-server-webui.pid"
  52.     process.stdout = process.stderr = "/var/log/chef/server-webui.log"
  53.  
  54.     process.start_grace_time = 10.seconds
  55.     process.stop_grace_time = 10.seconds
  56.     process.restart_grace_time = 20.seconds
  57.  
  58.     process.daemonize = true
  59.   end
  60. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top