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 CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -1,4 +1,3 @@
1
- default[:runit][:services_run] = "/etc/service"
2
1
  default[:runit][:num_old_logs] = 5
3
2
  default[:runit][:max_log_size] = 500000000
4
3
  default[:runit][:max_log_time] = 86400
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tvd-runit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: