Sha256: d366350931ece80e6d8ff0308c9846d147b6b3c1497f4e50729a2ab6967b39ef

Contents?: true

Size: 487 Bytes

Versions: 73

Compression:

Stored size: 487 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 = {
  #:mode => :exec,
  :multiple => true,
  :no_pidfiles => true,
  :force_kill_waittime => 5
  #:force_kill_waittime => -1    # do not wait before killing -9
}

Daemons.run(File.join(File.dirname(__FILE__), 'myserver_hanging.rb'), options)

Version data entries

73 entries across 71 versions & 8 rubygems

Version Path
mlanett-daemons-1.1.10.3 examples/run/ctrl_hanging.rb
mlanett-daemons-1.1.10.2 examples/run/ctrl_hanging.rb
classiccms-0.7.2 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.7.1 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.7.0 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.6.9 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.6.8 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.6.7 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.6.6 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.6.5 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.6.4 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.6.3 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.6.2 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.6.1 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.6.0 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.5.17 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.5.16 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.5.15 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.5.14 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb
classiccms-0.5.13 vendor/bundle/gems/daemons-1.1.8/examples/run/ctrl_hanging.rb