Sha256: 0aac3a4136cc81f5c30340ec129d3a24dfdaa201353f66f7807a75d3c774bc0e

Contents?: true

Size: 333 Bytes

Versions: 7

Compression:

Stored size: 333 Bytes

Contents

lib_dir = File.expand_path(File.join(File.split(__FILE__)[0], '../../lib'))

if File.exists?(File.join(lib_dir, 'daemons.rb'))
  $LOAD_PATH.unshift lib_dir
else
  require 'rubygems' rescue nil
end

require 'daemons'


options = {
  :monitor => true
}

Daemons.run(File.join(File.split(__FILE__)[0], 'myserver_crashing.rb'), options)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
daemons-1.0.1 examples/run/ctrl_monitor.rb
daemons-0.4.3 examples/run/ctrl_monitor.rb
daemons-1.0.0 examples/run/ctrl_monitor.rb
daemons-0.4.0 examples/run/ctrl_monitor.rb
daemons-0.4.1 examples/run/ctrl_monitor.rb
daemons-0.4.2 examples/run/ctrl_monitor.rb
daemons-0.4.4 examples/run/ctrl_monitor.rb