pipeline_toolkit 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -57,6 +57,7 @@ EOL
|
|
57
57
|
|
58
58
|
Misc:
|
59
59
|
EOL
|
60
|
+
opt :pid_path, "Specifies a path to write a file containing the pid to, by default no pid file is created", :type => :string
|
60
61
|
opt :env, "The environment to run (development, production)", :default => "development", :short => :e
|
61
62
|
end
|
62
63
|
|
@@ -40,6 +40,7 @@ module PipelineToolkit
|
|
40
40
|
DefaultLogger.info ""
|
41
41
|
|
42
42
|
@structure = [description]
|
43
|
+
write_pid(options[:pid_path]) if options[:pid_path]
|
43
44
|
|
44
45
|
reset_message_statistics
|
45
46
|
end
|
@@ -51,7 +52,7 @@ module PipelineToolkit
|
|
51
52
|
|
52
53
|
Signal.trap('INT') { EM.stop }
|
53
54
|
Signal.trap('TERM') { EM.stop }
|
54
|
-
|
55
|
+
|
55
56
|
DefaultLogger.debug("MessageSubscriber#start")
|
56
57
|
begin
|
57
58
|
create_sys_pipe
|
@@ -87,6 +88,11 @@ module PipelineToolkit
|
|
87
88
|
DefaultLogger.info "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
|
88
89
|
destroy_sys_pipe
|
89
90
|
end
|
91
|
+
|
92
|
+
def write_pid(path)
|
93
|
+
DefaultLogger.info "Pid file written to #{options[:pid_path]}" if options[:pid_path]
|
94
|
+
`echo #{Process.pid} > #{path}`
|
95
|
+
end
|
90
96
|
|
91
97
|
def monitoring_enabled?
|
92
98
|
!options[:http_port].nil?
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 1.2.
|
8
|
+
- 6
|
9
|
+
version: 1.2.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Aisha Fenton
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-26 00:00:00 +12:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|