harbr 0.1.57 → 0.1.59
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/harbr/job.rb +4 -3
- data/lib/harbr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e56262ec27753fc415e7e48325aec332145488ec6e0e3a689b00157068547ca
|
4
|
+
data.tar.gz: c8baafeb348d432669ed3364661a13144f8e0a184f5691aec82d9662e981647c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0339b59014fd96460c44617f351be1303a0c963e15d1e6cb3c308c89368bff436b59f15c6993c2f5df59caba2d8b690f194c0f6b3bff79dc056970ef48b8c091'
|
7
|
+
data.tar.gz: eba0044d3a43226387a901c2dae9551b9ddb48ac0a3b34f6f519a434795f4aca533c5d14e35982018fabbd8a71d654cffcf4608f7e762c17b125961915cd284b
|
data/lib/harbr/job.rb
CHANGED
@@ -165,7 +165,7 @@ module Harbr
|
|
165
165
|
if env == "next"
|
166
166
|
write_to_file "/etc/sv/harbr/#{name}/#{env}/run", run_script
|
167
167
|
write_to_file "/etc/sv/harbr/#{name}/#{env}/log/run", log_script
|
168
|
-
write_to_file "/etc/sv/harbr/#{name}/#{env}/
|
168
|
+
write_to_file "/etc/sv/harbr/#{name}/#{env}/finish", finish_script
|
169
169
|
`chmod +x /etc/sv/harbr/#{name}/#{env}/run`
|
170
170
|
`chmod +x /etc/sv/harbr/#{name}/#{env}/finish`
|
171
171
|
`chmod +x /etc/sv/harbr/#{name}/#{env}/log/run`
|
@@ -228,8 +228,9 @@ module Harbr
|
|
228
228
|
def finish_script
|
229
229
|
<<~SCRIPT
|
230
230
|
#!/bin/sh
|
231
|
-
sleep
|
232
|
-
|
231
|
+
sleep 1
|
232
|
+
lsof -i :#{@port} | awk 'NR!=1 {print $2}' | xargs kill
|
233
|
+
sleep 1
|
233
234
|
SCRIPT
|
234
235
|
end
|
235
236
|
|
data/lib/harbr/version.rb
CHANGED