gemdaemon_controllerを使用してfayeを自動的に実行しようとしています。
私のクラス
require "daemon_controller"
class FayeDaemon
def initialize
@controller = DaemonController.new(
:identifier => 'Faye server',
:start_command => "rackup faye.ru -s thin -E production",
:ping_command => [:tcp , 'localhost', 9292],
:log_file => 'log/faye.log',
:pid_file => 'tmp/pids/faye.pid',
:start_timeout => 5
)
end
def start
@controller.start
end
end
ApplicationControllerでbefore_filterとして使用する関数
def start_faye
fayes = FayeDaemon.new
fayes.start
end
その結果、fayeはエラー
DaemonController :: StartTimeoutで実行されません(デーモン'Fayeサーバー'は時間内にデーモン化されませんでした。)
fayes.startが呼び出されたとき。
私が間違ったことは何ですか?