tvd-runit 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/cookbooks/runit/definitions/runit_service.rb +0 -14
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
@@ -19,7 +19,6 @@
|
|
19
19
|
|
20
20
|
define :runit_service, :services_defined => nil, :only_if => false, :options => Hash.new do
|
21
21
|
params[:template_name] ||= params[:name]
|
22
|
-
params[:restart] ||= "restart"
|
23
22
|
params[:env] ||= {}
|
24
23
|
|
25
24
|
svdir = "#{params[:services_defined]}/#{params[:name]}"
|
@@ -64,17 +63,4 @@ define :runit_service, :services_defined => nil, :only_if => false, :options =>
|
|
64
63
|
variables :value => value
|
65
64
|
end
|
66
65
|
end
|
67
|
-
|
68
|
-
execute "#{params[:restart]}_#{params[:name]}_service" do
|
69
|
-
command "sv #{params[:restart]} #{params[:name]}"
|
70
|
-
subscribes :run, resources(:cookbook_file => "#{svdir}/run"), :delayed
|
71
|
-
action :nothing
|
72
|
-
end
|
73
|
-
|
74
|
-
execute "hup_#{params[:name]}_log" do
|
75
|
-
command "sv hup #{params[:name]}/log"
|
76
|
-
subscribes :run, resources(:cookbook_file => "#{svdir}/log/run")
|
77
|
-
subscribes :run, resources(:template => "#{svdir}/log/config")
|
78
|
-
action :nothing
|
79
|
-
end
|
80
66
|
end
|