Permalink
Browse files

Deploy signal wrapper for the worker process.

  • Loading branch information...
1 parent 7c658f7 commit 2b728dc280b6e88ee6e09ee4585b2fd20e5168da @roidrage roidrage committed Mar 4, 2013
@@ -2,5 +2,5 @@
maintainer_email "mathias@travis-ci.org"
license "Apache 2.0"
description "Installs/Configures the Travis Worker"
-version "0.5.0"
+version "0.5.1"
depends "runit"
@@ -12,6 +12,17 @@
command "monit reload"
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|
app = "worker-#{worker}"
worker_name = "#{app}.#{node[:fqdn]}"
@@ -1,4 +1,4 @@
#!/bin/bash
exec 2>&1
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.