Class: Moro::Daemon
- Inherits:
-
Object
- Object
- Moro::Daemon
- Defined in:
- lib/moro/daemon.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Daemon
constructor
A new instance of Daemon.
- #start ⇒ Object
Constructor Details
Instance Method Details
#start ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/moro/daemon.rb', line 12 def start() ="start moro daemon" ="stop moro daemon" puts @logger.info() at_exit do puts @logger.info() end while true @monitor.show @logger.info "stats memory" sleep(10) end end |