tvd-runit 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/cookbooks/runit/attributes/default.rb +0 -1
- data/cookbooks/runit/definitions/runit_service.rb +0 -14
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -65,20 +65,6 @@ define :runit_service, :services_defined => nil, :only_if => false, :options =>
|
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
-
ruby_block "supervise_#{params[:name]}_sleep" do
|
69
|
-
block do
|
70
|
-
(1..6).each {|i| sleep 1 unless ::FileTest.pipe?("#{svdir}/supervise/ok") }
|
71
|
-
end
|
72
|
-
not_if { FileTest.pipe?("#{svdir}/supervise/ok") || $testrun }
|
73
|
-
end
|
74
|
-
|
75
|
-
ruby_block "supervise_#{params[:name]}_log_sleep" do
|
76
|
-
block do
|
77
|
-
(1..6).each {|i| sleep 1 unless ::FileTest.pipe?("#{svdir}/log/supervise/ok") }
|
78
|
-
end
|
79
|
-
not_if { FileTest.pipe?("#{svdir}/supervise/log/ok") || $testrun }
|
80
|
-
end
|
81
|
-
|
82
68
|
execute "#{params[:restart]}_#{params[:name]}_service" do
|
83
69
|
command "sv #{params[:restart]} #{params[:name]}"
|
84
70
|
subscribes :run, resources(:cookbook_file => "#{svdir}/run"), :delayed
|