Skip to content

Commit

Permalink
Deploy signal wrapper for the worker process.
Browse files Browse the repository at this point in the history
  • Loading branch information
roidrage committed Mar 4, 2013
1 parent 7c658f7 commit 2b728dc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion worker_host/travis_worker/metadata.rb
Expand Up @@ -2,5 +2,5 @@
maintainer_email "mathias@travis-ci.org" maintainer_email "mathias@travis-ci.org"
license "Apache 2.0" license "Apache 2.0"
description "Installs/Configures the Travis Worker" description "Installs/Configures the Travis Worker"
version "0.5.0" version "0.5.1"
depends "runit" depends "runit"
11 changes: 11 additions & 0 deletions worker_host/travis_worker/recipes/bluebox.rb
Expand Up @@ -12,6 +12,17 @@
command "monit reload" command "monit reload"
end end


package "ruby1.9.3" do
action :install
end

cookbook_file "/usr/local/bin/signal_wrapper" do
source "signal_wrapper.rb"
mode "0755"
owner "root"
backup false
end

1.upto(node[:travis][:worker][:workers]) do |worker| 1.upto(node[:travis][:worker][:workers]) do |worker|
app = "worker-#{worker}" app = "worker-#{worker}"
worker_name = "#{app}.#{node[:fqdn]}" worker_name = "#{app}.#{node[:fqdn]}"
Expand Down
@@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
exec 2>&1 exec 2>&1
cd <%= @options[:worker_home] %> cd <%= @options[:worker_home] %>
exec chpst -u <%= @options[:user] %>:<%= @options[:group] %> <%= @options[:jruby] %> ./bin/thor travis:worker:boot exec chpst -u <%= @options[:user] %>:<%= @options[:group] %> /usr/local/bin/signal_wrapper <%= @options[:jruby] %> ./bin/thor travis:worker:boot

0 comments on commit 2b728dc

Please sign in to comment.