Sha256: 8d10202c0ebbe6adb52cad131440ce2b21c2d5a1804cf8cc397f1a573535a88b

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__),'..','lib'))
require 'daemon-ogre'

# start as
#   ruby sample_daemon_app.rb --daemon
# puts "app name: #{$0}"
ARGV.unshift '--daemon'
puts "ps aux | grep #{$0}"
puts "tail -f #{DaemonOgre::OPTS.tmp_folder_path}/*"

DaemonOgre.init

10.times do

  puts Time.now
  sleep 1

end

raise('some err')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
daemon-ogre-2.2.0 example/daemonizable.rb