/config/environment.rb

http://github.com/mperham/qanat · Ruby · 25 lines · 8 code · 7 blank · 10 comment · 0 complexity · 8ce5cd173d33e4aead2e47977c19202f MD5 · raw file

  1. # Be sure to restart your daemon when you modify this file
  2. # Uncomment below to force your daemon into production mode
  3. #ENV['DAEMON_ENV'] ||= 'production'
  4. require 'fileutils'
  5. FileUtils.mkdir_p(File.dirname(__FILE__) + '/../log')
  6. # Boot up
  7. require File.join(File.dirname(__FILE__), 'boot')
  8. DaemonKit::Initializer.run do |config|
  9. # The name of the daemon as reported by process monitoring tools
  10. config.daemon_name = 'qanat'
  11. # Force the daemon to be killed after X seconds from asking it to
  12. config.force_kill_wait = 30
  13. # Log backraces when a thread/daemon dies (Recommended)
  14. config.backtraces = true
  15. # Configure the safety net (see DaemonKit::Safety)
  16. # config.safety_net.handler = :mail # (or :hoptoad )
  17. # config.safety_net.mail.host = 'localhost'
  18. end