kennethkalmer/daemon-kit

View on GitHub
lib/generators/daemon_kit/app/templates/config/pre-daemonize/readme

Summary

Maintainability
Test Coverage
# You can place files in here to be loaded before the code is daemonized.
#
# DaemonKit looks for a file named '<config.daemon_name>.rb' and loads
# that file first, and inside a DaemonKit::Initializer block. The
# remaning files then simply required into the running process.
# 
# These files are mostly useful for operations that should fail blatantly
# before daemonizing, like loading gems.
#
# Be careful not to open any form of IO in here and expecting it to be
# open inside the running daemon since all IO instances are closed when
# daemonizing (including STDIN, STDOUT & STDERR).