Hey there,
I've basically got the following setup for daemon kit, using the stomp
gem to process a queue:
DaemonKit::Application.running! do |config|
config.trap( 'INT' ) do
DaemonKit.logger.info("Received INT, going down.")
end
config.trap( 'TERM' ) do
DaemonKit.logger.info("Received TRAP, going down.")
end
config.trap( 'KILL' ) do
DaemonKit.logger.info("Received KILL, going down.")
end
end
# stuff omitted
client.subscribe(
config.queue.name, :ack => 'client') do |msg|
begin
# do work
rescue Exception => e
# logging
end
end
client.join
The problem is that somehow the daemon process disappears without me
getting a shutdown notice, nor exception logs or any of the trap logs.
I have no clue how to figure out what this could be, and why it
happens.
It's daemon kit version 0.1.8.1 - does anyone know how I could figure
that out?