cpee 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b71f98dc26ff6f1cfed69fc184651d7fd01175bee56c77df2f92df10a8db1a3e
4
- data.tar.gz: 6b023b74f885fc91e81b1ad27040998eea19e7098cb899f3555e5c1c3e11cf38
3
+ metadata.gz: 6d1d7e6a27a9a6609e6ae2efd391e71595a36d6a5672bbfc6fbb615dcf2b66cd
4
+ data.tar.gz: 2c4628fb7fac4f492ca00f3215fdfa361c461550243b8fbc5c24b32f1f396b3f
5
5
  SHA512:
6
- metadata.gz: fd458b2163ef367cde6ac05fa4e178b93f0ad06d5a01cbfc44bf32d921e7675e667a13fd7956e19eac89b064b47908beb815f23d127201d3bf6ac5e7a081c7cd
7
- data.tar.gz: f003121ae2244ba0e0608d56cc628f99a05a57e101fb806d1adce44225cc762fc7bb7354c51e3f2bee3bcabb46cfe6200fb7f6a0a3599b16c0a75ffd1f83c7d4
6
+ metadata.gz: 05f3c482d24f650988760431222f8f1ee4aa320b78edb60d31705d0e8bcc7baa84a8c41fcdd36006411a27f40cb77bbdf6f7664fc6305ed4ac7bafcc6e4aff56
7
+ data.tar.gz: 756a3209ebf911c8407804ba5f0a88b86827578bd0d29435c8ee711c79cbbbbbe581791f6cb233cd520d72074dc7a160e6ba58fd8b35591efaef9cc72898e138
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "2.0.2"
3
+ s.version = "2.0.3"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Preliminary release of cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
@@ -215,12 +215,12 @@ module CPEE
215
215
  case state
216
216
  when 'running'
217
217
  CPEE::Persistence::write_instance id, opts
218
- pid = Kernel.spawn(exe , :out => exe + '.out', :err => exe + '.err')
219
- File.write(exe + '.pid',pid)
218
+ pid = Kernel.spawn(exe , :pgroup => true, :in=>"/dev/null", :out => exe + '.out', :err => exe + '.err')
220
219
  Process.detach pid
220
+ File.write(exe + '.pid',pid)
221
221
  when 'stopping'
222
222
  pid = File.read(exe + '.pid') rescue nil
223
- if pid && (Process.kill(0, pid) rescue false)
223
+ if pid && (Process.kill(0, pid.to_i) rescue false)
224
224
  Process.kill('HUP', pid.to_i) rescue nil
225
225
  else
226
226
  File.unlink(exe + '.pid') rescue nil
@@ -26,8 +26,8 @@ File.write(opts[:pidf],opts[:pid])
26
26
  Signal.trap(sig) do
27
27
  puts "Caught #{sig}!"
28
28
  controller.stop
29
- File.unlink(opts[:pidf])
30
29
  end
31
30
  end
32
31
 
33
32
  controller.start
33
+ File.unlink(opts[:pidf])
data/tools/cpee CHANGED
@@ -48,7 +48,7 @@ ARGV.options { |opt|
48
48
  opt.on("")
49
49
  opt.on(wrap("[ui] starts a simple static web server with the ui on http://localhost:8080. Use [cpui DIR] if you want stuff in apache or nginx."))
50
50
  opt.on("")
51
- opt.on(wrap("[convert] converts all testsets in the current directory to cpee2."))
51
+ opt.on(wrap("[convert] converts all testsets in the current directory to cpee2"))
52
52
  opt.parse!
53
53
  }
54
54
  if (ARGV.length == 0) ||
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler