aggkit 0.4.5.12324 → 0.4.5.12326
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/aggwrap +8 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52470925653d4248475ce09f1c7bc69475ec66be
|
4
|
+
data.tar.gz: 88874326a0b1bae4f21bb92cb8124f80526afcb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb075592fa1471f4d105e171d43b890fbdc4c689ecfe6d76bb54cbf10ad47b9e4bb2cec98b0cdf5c40cd73ae15dc903a060a88e4e3c05a923b1c1b8a8eade489
|
7
|
+
data.tar.gz: f14d8431ab894237f0c90af82cc7e2bc4e911236e1647ea507a3ad7cfeaf03f4cdf986fa815d2b284b4cc5f59a8ee69115fe7858007c44942f2a33f045328129
|
data/bin/aggwrap
CHANGED
@@ -149,7 +149,7 @@ SERVICE_ID = "#{@opts[:service]}_#{@opts[:id]}".freeze
|
|
149
149
|
CheckID: @checks[:exec],
|
150
150
|
Name: "Wrapped service: #{@opts[:service]}. Process: #{@opts[:exec].inspect}",
|
151
151
|
DeregisterCriticalServiceAfter: '1m',
|
152
|
-
TTL: '
|
152
|
+
TTL: '50s'
|
153
153
|
)
|
154
154
|
|
155
155
|
if @opts[:http]
|
@@ -158,7 +158,7 @@ if @opts[:http]
|
|
158
158
|
CheckID: @checks[:http],
|
159
159
|
Name: "Wrapped service: #{@opts[:service]}. HTTP: #{@opts[:http]}",
|
160
160
|
DeregisterCriticalServiceAfter: '1m',
|
161
|
-
TTL: '
|
161
|
+
TTL: '50s'
|
162
162
|
)
|
163
163
|
end
|
164
164
|
|
@@ -168,7 +168,7 @@ if @opts[:file]
|
|
168
168
|
CheckID: @checks[:file],
|
169
169
|
Name: "Wrapped service: #{@opts[:service]}. File: #{@opts[:file]}",
|
170
170
|
DeregisterCriticalServiceAfter: '1m',
|
171
|
-
TTL: '
|
171
|
+
TTL: '50s'
|
172
172
|
)
|
173
173
|
end
|
174
174
|
|
@@ -178,7 +178,7 @@ if @opts[:pidfile]
|
|
178
178
|
CheckID: @checks[:pidfile],
|
179
179
|
Name: "Wrapped service: #{@opts[:service]}. Pidfile: #{@opts[:pidfile]}",
|
180
180
|
DeregisterCriticalServiceAfter: '1m',
|
181
|
-
TTL: '
|
181
|
+
TTL: '50s'
|
182
182
|
)
|
183
183
|
end
|
184
184
|
|
@@ -188,7 +188,7 @@ if @opts[:script]
|
|
188
188
|
CheckID: @checks[:script],
|
189
189
|
Name: "Wrapped service: #{@opts[:service]}. Script: #{@opts[:script]}",
|
190
190
|
DeregisterCriticalServiceAfter: '1m',
|
191
|
-
TTL: '
|
191
|
+
TTL: '50s'
|
192
192
|
)
|
193
193
|
end
|
194
194
|
|
@@ -222,7 +222,7 @@ rescue StandardError => e
|
|
222
222
|
end
|
223
223
|
|
224
224
|
def check_pidfile(check_id, pidfile)
|
225
|
-
|
225
|
+
_pid = Integer(File.read(pidfile).strip)
|
226
226
|
make_ttl_pass(check_id)
|
227
227
|
rescue StandardError => e
|
228
228
|
make_ttl_fail(check_id, e.inspect)
|
@@ -278,7 +278,7 @@ Thread.new do
|
|
278
278
|
end
|
279
279
|
end
|
280
280
|
|
281
|
-
sleep 10
|
281
|
+
sleep rand(10..19)
|
282
282
|
end
|
283
283
|
end
|
284
284
|
|
@@ -315,7 +315,7 @@ end
|
|
315
315
|
end
|
316
316
|
end
|
317
317
|
|
318
|
-
|
318
|
+
_pid, status = Process.wait2($pid)
|
319
319
|
|
320
320
|
result = {}
|
321
321
|
|