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