Sha256: 7bcc22875695db6ea1d742ceefe94438e3979ee5adea28364d2568360f1d4ad1

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 Bytes

Contents

lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../lib'))

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

require 'daemons'


options = {
  :ontop => true
}

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
daemons-1.0.2 examples/run/ctrl_ontop.rb
daemons-1.0.3 examples/run/ctrl_ontop.rb
daemons-1.0.4 examples/run/ctrl_ontop.rb