Ruby daemon hangs on rails load -


I have problems with a verbal daemon working properly i when i run:

< Pre> ruby ​​script / working_client run

Damon rail starts to load, but hangs indefinitely when I kill the process, stack trace always The same happens:

  / libraries / rabby / james / 1/8 / gems / activesupport-2.1.2 / lib / active_support / core_ext / load_error.rb: 32: `new ' : / Library / ruby ​​/ cy / 1.8 / rubygems / custom_require.rb31 interrupt: / library / ruby ​​/ site / 1.8 / rubygems / custom_require.rb31 from 'gem_original_require' `library / ruby ​​/ james / 1/8 / article / facts support '-2.1.2 / Lib / active_sappressions RB10: Requires `` to be / Library / Ruby / James / 1/8 / Article / Information-Import -2.1 .2 / lib / active_support / dependencies.rb: 355: `new_constants_in 'in / library / ruby ​​/ james / 1.8 / gems / activesupport-2.1.2 / lib / active_support / dependencies.rbeter10: in 'Required' Library / Rabbi / James / 1/8 / article /httpclient-2.1.2/lib/httpclient.rb: 68 / Library / Ruby / Site / 1.8 / Robbags / Custom_Requires. Rb 31: In / gem_original_require / from / Library / Ruby / Site / 1.8 / RubyJames / Custom_Require RB: 31: `Requirement '... in / Labri / Rabi / Games / 1.8 / Village / Dimon-1.0.10 / Lib / Diedemans / CMDline ... RB: 105: Om / Library / Ruby / Gems / 1.8 / gems / daemons-1.0.10 / lib / daemons / cmdline.rb: 105: in / copy_exceptions / library / ruby ​​/ gems / 1.8 / gems / daemons-1.0.10 / lib / daemons.rb : 138: Runs from script / workling_client: 18  

if I run the script without the daemon library, then it works as expected, in fact, daemon mani Poor to load anything to use I needed to have my railway environment. Any ideas?

Update: Working_client loading worksheets listen.rb as a daemon Instead of loading tracks in listen.rb, I changed it so that instead of loading in workling_client, and the process works without any hitch. Therefore, some reason is that I can not load the rail in a demuted script: - (

Do you post the code that starts the daemon script? I know it is possible to load the railroad in the daemon script because we do it for our late-job scripts.

The initial part is:

  is required for file.expand_path (file.join (file.dirname (__ FILE__), '..', 'config', 'sur Verb '))  

In your own Rail project, the Environment .rb file, after that, the process is automatically received from DemoCois:

  Worker :: Command.New (ARGV, workers => work_config) .demonize  

Rails our script before the loaded demoze phase. If it does not work, include that How your script loads the rail.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -