Sha256: 958f38179cc246e3e36c31c7cf8df549f38e2b72be9b327f33c394879fdaf2d2

Contents?: true

Size: 549 Bytes

Versions: 114

Compression:

Stored size: 549 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 = {
             :multiple   => false,
             :ontop      => false,
             :backtrace  => true,
             :log_output => true,
             :monitor    => true
           }
           
Daemons.run_proc('ctrl_proc.rb', options) do
  loop do
    puts 'ping from proc!'
    sleep(3)
  end
end

Version data entries

114 entries across 114 versions & 13 rubygems

Version Path
auser-poolparty-1.3.8 vendor/gems/daemons/examples/run/ctrl_proc.rb
fairchild-poolparty-1.3.17 vendor/gems/daemons/examples/run/ctrl_proc.rb
fairchild-poolparty-1.3.5 vendor/gems/daemons/examples/run/ctrl_proc.rb
blue-daemons-1.1.11 examples/run/ctrl_proc.rb
mlanett-daemons-1.1.10.3 examples/run/ctrl_proc.rb
mlanett-daemons-1.1.10.2 examples/run/ctrl_proc.rb
mlanett-daemons-1.0.13 examples/run/ctrl_proc.rb
classiccms-0.7.2 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.7.1 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.7.0 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.6.9 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.6.8 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.6.7 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.6.6 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.6.5 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.6.4 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.6.3 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.6.2 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.6.1 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb
classiccms-0.6.0 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_proc.rb