From: Keith Raymond Date: 2011-12-17T04:41:11+09:00 Subject: FSSM gem to watch directory Hello all, I'm setting up my application to watch a directory in the application and take action when a file is added/modified in that directory. I'm using the following gems: rb-inotify fssm delayed_job When running the fssm_control via $ ./script/fssm_control the process starts/stops without any complaints but in the log file I get the following: ---------------------------------- # # # # # *** below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally *** # *** below you find all exception objects found in memory, some of them may have been thrown in your application, others may just be in memory because they are standard exceptions *** # # # # # ---------------------------------- Below is my script to run this process ---------------------------------- ### script/fssm_control ### #!/usr/bin/env ruby require 'rubygems' require "daemons" dir = File.expand_path(File.join(File.dirname(__FILE__), '..')) options = { :app_name => "fssm_control", :multiple => false, :dir_mode => :normal, :dir => File.join(dir, 'tmp', 'pids'), :backtrace => true, :monitor => true } Daemons.run(File.join(File.dirname(__FILE__), 'fssm.rb'), options) ---------------------------------- I apologize if there is not enough information but I can answer any questions that might lead to a solution. Thank you in advance Sparkmasterflex -- Posted via http://www.ruby-forum.com/.