tvd-runit 0.0.5 → 0.0.6

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.5
1
+ 0.0.6
@@ -26,31 +26,21 @@ define :runit_service, :services_defined => nil, :only_if => false, :options =>
26
26
  svc_current = "#{params[:services_current]}/#{params[:name]}"
27
27
 
28
28
  directory params[:services_defined]
29
- directory params[:services_run]
30
29
 
31
30
  directory svc_defined
32
- directory svc_run
33
-
31
+
34
32
  cookbook_file "#{svc_defined}/run" do
35
33
  mode 0755
36
34
  source "sv-#{params[:template_name]}-run"
37
35
  cookbook params[:cookbook] if params[:cookbook]
38
36
  end
39
- link "#{svc_run}/run" do
40
- to "#{svc_current}/run"
41
- end
42
-
43
37
  directory "#{svc_defined}/log"
44
- directory "#{svc_run}/log"
45
38
 
46
39
  cookbook_file "#{svc_defined}/log/run" do
47
40
  mode 0755
48
41
  source "sv-log-run"
49
42
  cookbook "runit"
50
43
  end
51
- link "#{svc_run}/log/run" do
52
- to "#{svc_current}/log/run"
53
- end
54
44
 
55
45
  template "#{svc_defined}/log/config" do
56
46
  mode 0644
@@ -60,14 +50,8 @@ define :runit_service, :services_defined => nil, :only_if => false, :options =>
60
50
  variables :options => params[:options]
61
51
  end
62
52
  end
63
- link "#{svc_run}/log/config" do
64
- to "#{svc_current}/log/config"
65
- end
66
53
 
67
54
  directory "#{svc_defined}/env"
68
- link "#{svc_run}/env" do
69
- to "#{svc_current}/env"
70
- end
71
55
 
72
56
  runit_env = {
73
57
  "PATH" => ENV['PATH'],
@@ -82,4 +66,26 @@ define :runit_service, :services_defined => nil, :only_if => false, :options =>
82
66
  variables :value => value
83
67
  end
84
68
  end
69
+
70
+ unless svc_defined == svc_run
71
+ directory params[:services_run]
72
+
73
+ directory svc_run
74
+ directory "#{svc_run}/log"
75
+ link "#{svc_run}/run" do
76
+
77
+ to "#{svc_current}/run"
78
+ end
79
+
80
+ link "#{svc_run}/log/run" do
81
+ to "#{svc_current}/log/run"
82
+ end
83
+
84
+ link "#{svc_run}/log/config" do
85
+ to "#{svc_current}/log/config"
86
+ end
87
+ link "#{svc_run}/env" do
88
+ to "#{svc_current}/env"
89
+ end
90
+ end
85
91
  end
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.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: