Sha256: 5eacad9d9a4325dfbddd755dca74074ad449237a0b87b1a8bb51e3227e036acd

Contents?: true

Size: 393 Bytes

Versions: 15

Compression:

Stored size: 393 Bytes

Contents

lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../lib'))

if File.exist?(File.join(lib_dir, 'daemons.rb'))
  $LOAD_PATH.unshift lib_dir
else
  begin; require 'rubygems'; rescue ::Exception; end
end

require 'daemons'

options = {
  :log_output => true,
  :multiple => true,
}

Daemons.run_proc('ctrl_proc_multiple.rb', options) do
  puts 'hello'
  sleep(5)
  puts 'done'
end

Version data entries

15 entries across 13 versions & 4 rubygems

Version Path
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/2.6.0/gems/daemons-1.4.1/examples/run/ctrl_proc_multiple.rb
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/3.1.0/gems/daemons-1.4.1/examples/run/ctrl_proc_multiple.rb
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/3.0.0/gems/daemons-1.4.1/examples/run/ctrl_proc_multiple.rb
daemons-1.4.1 examples/run/ctrl_proc_multiple.rb
daemons-1.4.0 examples/run/ctrl_proc_multiple.rb
daemons-1.3.1 examples/run/ctrl_proc_multiple.rb
daemons-1.3.0 examples/run/ctrl_proc_multiple.rb
daemons-1.2.6 examples/run/ctrl_proc_multiple.rb
daemons-1.2.5 examples/run/ctrl_proc_multiple.rb
arcabouco-0.2.13 vendor/bundle/gems/daemons-1.2.4/examples/run/ctrl_proc_multiple.rb
daemons-1.2.4 examples/run/ctrl_proc_multiple.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/daemons-1.2.3/examples/run/ctrl_proc_multiple.rb
daemons-1.2.3 examples/run/ctrl_proc_multiple.rb
daemons-1.2.2 examples/run/ctrl_proc_multiple.rb
daemons-1.2.1 examples/run/ctrl_proc_multiple.rb