Sha256: 6fb69c530abd274f734fb19a089d3e816b11c8083f74e27143044578485bda65
Contents?: true
Size: 708 Bytes
Versions: 2
Compression:
Stored size: 708 Bytes
Contents
system "ruby -rubygems -I../../lib ../../bin/puma -p 10102 -C t3_conf.rb ../hello.ru &" sleep 5 worker_pid_was_present = File.file? "t3-worker-2-pid" system "kill `cat t3-worker-2-pid`" # kill off a worker sleep 2 worker_index_within_number_of_workers = !File.file?("t3-worker-3-pid") system "kill `cat t3-pid`" File.unlink "t3-pid" if File.file? "t3-pid" File.unlink "t3-worker-0-pid" if File.file? "t3-worker-0-pid" File.unlink "t3-worker-1-pid" if File.file? "t3-worker-1-pid" File.unlink "t3-worker-2-pid" if File.file? "t3-worker-2-pid" File.unlink "t3-worker-3-pid" if File.file? "t3-worker-3-pid" if worker_pid_was_present and worker_index_within_number_of_workers exit 0 else exit 1 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puma-simon-3.7.2 | test/shell/t3.rb |
puma-simon-3.7.1 | test/shell/t3.rb |