Advertisement
Guest User

Daemon run issue

a guest
Apr 25th, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.22 KB | None | 0 0
  1. #file: controller.rb
  2. #command: ruby controller.rb start
  3. require 'daemons'
  4.  
  5. ['script1.rb','script2.rb'].each do |script|
  6.     Daemons.run(script)
  7.     puts "Started #{script}" #is never printed
  8. end
  9. puts 'completed'#is never printed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement