Sha256: aacf89c8d0d4c0167d82b9c54e45d8f339cf21e57332b580df24ca15066f7040

Contents?: true

Size: 323 Bytes

Versions: 3

Compression:

Stored size: 323 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 = {
  :multiple => 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.3 examples/run/ctrl_multiple.rb
daemons-1.0.2 examples/run/ctrl_multiple.rb
daemons-1.0.4 examples/run/ctrl_multiple.rb