foreman-tasks 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
1
3
|
module ForemanTasks
|
2
4
|
class Dynflow::Daemon
|
3
5
|
|
@@ -25,6 +27,7 @@ module ForemanTasks
|
|
25
27
|
wait_attempts: 300,
|
26
28
|
wait_sleep: 1 }
|
27
29
|
options = default_options.merge(options)
|
30
|
+
FileUtils.mkdir_p(options[:pid_dir])
|
28
31
|
begin
|
29
32
|
require 'daemons'
|
30
33
|
rescue LoadError
|
@@ -68,7 +71,8 @@ module ForemanTasks
|
|
68
71
|
protected
|
69
72
|
|
70
73
|
def listener
|
71
|
-
|
74
|
+
FileUtils.mkdir_p(File.dirname(socket_path))
|
75
|
+
::Dynflow::Listeners::Socket.new(world, socket_path)
|
72
76
|
end
|
73
77
|
|
74
78
|
def socket_path
|