2
데몬 1.1.9를 사용하고 있습니다. 데몬을 로그 파일에 로깅 할 수 없습니다.루비 보석 데몬에서 출력물을 출력하는 옵션을 어떻게 설정합니까?
require 'rubygems'
require 'daemons'
@options = {
:dir_mode => :script,
:dir => 'pids',
:multiple => false,
:backtrace => true,
:monitor => false,
:log_dir => 'log',
:log_output => true
}
Daemons.run('myserver.rb', @options)
PID들과 디렉토리 아래 루트 폴더에서 모두 단 하나 로그인하여 PID 파일이 성공적으로 기록되고 그래서 그것을 디렉토리/디렉토리 모드의 misspecification하지 알고 다음과 같이 내 데몬 제어 파일입니다 . myserver.rb.log 및 myserver.rb.output 파일은 log 디렉토리에 있습니다. 내가 도대체 뭘 잘못하고있는 겁니까? 미리 감사드립니다.