Sha256: 8468f348e85d792008402ed8b95b38bf8c63b3cda067604f692c8625e07538f3

Contents?: true

Size: 818 Bytes

Versions: 5

Compression:

Stored size: 818 Bytes

Contents

require_relative "../lib/daemon-ogre.rb"

DaemonOgre.start :name      => "api_one",          #this will be the name of the application
                 :log_path  => "./var/log/log_file_name",  #this will be the logfile place and name
                 :pid_path  => "./var/pid/pid_file_name",  #this will be the pidfile place and name
                 :terminate => false                        #this command not let start your code if it's not started
                                                           # with "start" arguments like :
                                                           #                  ruby my_awsome_app.rb start



#my awesome Hello App
puts "hello App!"

i=0
until i > 1200
  sleep 1
  puts "hello, there! A wonderful day for the #{i}. time! isn't it?"
  i+=1
end

puts "-=end=-"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
daemon-ogre-1.2.5 test/test_daemon-ogre.rb
daemon-ogre-1.2.3 test/test_daemon-ogre.rb
daemon-ogre-1.2.2 test/test_daemon-ogre.rb
daemon-ogre-1.2.1 test/test_daemon-ogre.rb
daemon-ogre-1.2.0 test/test_daemon-ogre.rb