Sha256: 6d42120e490aa238c9c06ca30fecf823e363e9548b7537a31e9f5e5440013069

Contents?: true

Size: 351 Bytes

Versions: 114

Compression:

Stored size: 351 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'

           
Daemons.run_proc('ctrl_proc_simple.rb') do
  loop do
    puts 'ping from proc!'
    sleep(3)
  end
end

Version data entries

114 entries across 114 versions & 13 rubygems

Version Path
poolparty-1.3.14 vendor/gems/daemons/examples/run/ctrl_proc_simple.rb
poolparty-1.3.13 vendor/gems/daemons/examples/run/ctrl_proc_simple.rb
poolparty-1.3.8 vendor/gems/daemons/examples/run/ctrl_proc_simple.rb
poolparty-1.3.7 vendor/gems/daemons/examples/run/ctrl_proc_simple.rb
poolparty-1.3.6 vendor/gems/daemons/examples/run/ctrl_proc_simple.rb
poolparty-1.3.4 vendor/gems/daemons/examples/run/ctrl_proc_simple.rb
poolparty-1.3.3 vendor/gems/daemons/examples/run/ctrl_proc_simple.rb
poolparty-1.3.1 vendor/gems/daemons/examples/run/ctrl_proc_simple.rb
daemons-1.0.6 examples/run/ctrl_proc_simple.rb
daemons-1.0.5 examples/run/ctrl_proc_simple.rb
daemons-1.0.10 examples/run/ctrl_proc_simple.rb
daemons-1.0.9 examples/run/ctrl_proc_simple.rb
daemons-1.0.7 examples/run/ctrl_proc_simple.rb
daemons-1.0.8 examples/run/ctrl_proc_simple.rb