Sha256: f264c6eb4dffde51b6e0ba11ac5c7b4c7a36941c543fa020e98ea656d6a5acda

Contents?: true

Size: 395 Bytes

Versions: 109

Compression:

Stored size: 395 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

109 entries across 109 versions & 13 rubygems

Version Path
daemons-1.1.0 examples/run/ctrl_proc_multiple.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
ghazel-daemons-1.0.13 examples/run/ctrl_proc_multiple.rb
ghazel-daemons-1.0.12 examples/run/ctrl_proc_multiple.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
mwotton-daemons-1.0.11 examples/run/ctrl_proc_multiple.rb
ghazel-daemons-1.0.11 examples/run/ctrl_proc_multiple.rb
ginst-2009.12.8 vendor/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
ginst-2009.11.24 vendor/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
ginst-2009.11.23 vendor/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
middleman-0.10.17 vendor/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
middleman-0.10.16 vendor/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
middleman-0.10.15 vendor/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
middleman-0.10.14 vendor/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
ginst-2.0.1 vendor/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
ginst-2.0.0 vendor/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb
poolparty-1.3.15 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb