Sha256: 259a63550dd884eade33ea5ed57535fbc52e63b232d937a95615d30d833fe2a0

Contents?: true

Size: 226 Bytes

Versions: 1

Compression:

Stored size: 226 Bytes

Contents

require 'daemon-ogre'

# start as
#   ruby sample_daemon_app.rb --daemon

puts "app name: #{$0}"

ARGV.show_help
DaemonOgre.init

60.times do

  puts Time.now
  sleep 1

end

sleep 1
# to check it's running
`ps aux | grep $0`

Version data entries

1 entries across 1 versions & 1 rubygems

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