Sha256: a97722a418e4cd9df03c065a778deef26dea6c78414dc2c1694f8063e3fe9f10
Contents?: true
Size: 526 Bytes
Versions: 67
Compression:
Stored size: 526 Bytes
Contents
# Change this file to be a wrapper around your daemon code. # Do your post daemonization configuration here # At minimum you need just the first line (without the block), or a lot # of strange things might start happening... DaemonKit::Application.running! do |config| # Trap signals with blocks or procs # config.trap( 'INT' ) do # # do something clever # end # config.trap( 'TERM', Proc.new { puts 'Going down' } ) end # Sample loop to show process loop do DaemonKit.logger.info "I'm running" sleep 60 end
Version data entries
67 entries across 62 versions & 8 rubygems