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
classiccms-0.7.5 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.7.4 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.7.3 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.0 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.1 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.10 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.11 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.12 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.13 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.14 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.15 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.16 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.17 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.2 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.3 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.4 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.5 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.6 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb
auser-poolparty-1.3.7 vendor/gems/daemons/examples/run/ctrl_proc_multiple.rb