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.5.17 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.16 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.15 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.14 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.13 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.12 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.11 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.10 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.9 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.8 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
daemons-1.1.9 examples/run/ctrl_proc_multiple.rb
classiccms-0.5.7 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.6 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.5 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.2 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.1 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.5.0 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.4.2 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.4.1 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb
classiccms-0.4.0 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc_multiple.rb