Git Product home page Git Product logo

daemons-rails's People

Contributors

mirasrael avatar mlapshin avatar mobileoverlord avatar nilbus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

daemons-rails's Issues

'stop' reruns daemon and then forces stop ungracefully (Rails 4.0.2, Ruby 2.0.0)

Given the following daemon

#!/usr/bin/env ruby

# You might want to change this
ENV["RAILS_ENV"] ||= "production"

root = File.expand_path(File.dirname(__FILE__))
root = File.dirname(root) until File.exists?(File.join(root, 'config'))
Dir.chdir(root)

require File.join(root, "config", "environment")

Rails.logger.info "Starting..."

$running = true
Signal.trap("TERM") do 
  $running = false
end

while($running) do

  # Replace this with your code
  Rails.logger.info "This daemon is still running at #{Time.now}.\n"

  sleep 10
end

Rails.logger.info "Ending..."

run with

rake daemon:test:start RAILS_ENV=development

and then stopped with

rake daemon:test:stop RAILS_ENV=development

the output is

test.rb: trying to stop process with pid 47042...
test.rb: process with pid 47042 won't stop, we forcefully kill it...
test.rb: process with pid 47042 successfully stopped.

and the log shows

Starting...
This daemon is still running at 2014-01-28 16:40:45 -0800.

This daemon is still running at 2014-01-28 16:40:55 -0800.

Ending...
Starting...
This daemon is still running at 2014-01-28 16:41:05 -0800.

This daemon is still running at 2014-01-28 16:41:15 -0800.

showing that the daemon restarted and then was killed.

Workaround:

Modify loop as follows:

while($running) do

  # Replace this with your code
  Rails.logger.info "This daemon is still running at #{Time.now}.\n"

  sleep 10
  unless $running
    raise 
  end
end

Raising an exception by-passes the restart.

daemon process is exiting after receiving the first connection abruptly

If I run in the console with command (rake daemon:park) , I think the process run in foreground and does not exit but if I daemonize (rake daemon:park:start) it then it quits abruptly once it gets first connection request

Here is my code below.

Replace this with your code

s = UDPSocket.new
s.bind("0.0.0.0", 2000)
loop do
text, sender = s.recvfrom(16)
puts text
s.send "aaa", 0, sender[3], sender[1]
e = Event.find(1)
e.pdata = text
e.save
end

“bundle exec rake daemons:start” now giving a “: No such file or directory” error

0
down vote
favorite
I have a Ruby on Rails app that depends on a number of daemons to work properly. It was working fine but I can't figure out what I changed to make it stop working. Now when I run the following command:

$ bundle exec rake daemons:start
I get the following error:

/home/deploy/bitcoinfundi/current/vendor/bundle/ruby/2.2.0/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 60 was converted to "60". (StandardWarning)
/home/deploy/bitcoinfundi/current/vendor/bundle/ruby/2.2.0/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 587 was converted to "587". (StandardWarning)
/home/deploy/bitcoinfundi/current/vendor/bundle/ruby/2.2.0/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 8080 was converted to "8080". (StandardWarning)
/home/deploy/bitcoinfundi/current/vendor/bundle/ruby/2.2.0/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 4567 was converted to "4567". (StandardWarning)
/home/deploy/bitcoinfundi/current/vendor/bundle/ruby/2.2.0/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 8080 was converted to "8080". (StandardWarning)
/home/deploy/bitcoinfundi/current/vendor/bundle/ruby/2.2.0/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 8080 was converted to "8080". (StandardWarning)
/home/deploy/bitcoinfundi/current/vendor/bundle/ruby/2.2.0/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. true was converted to "true". (StandardWarning)
/home/deploy/bitcoinfundi/current/vendor/bundle/ruby/2.2.0/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 15129007520 was converted to "15129007520". (StandardWarning)
/home/deploy/bitcoinfundi/current/vendor/bundle/ruby/2.2.0/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. false was converted to "false". (StandardWarning)
/home/deploy/bitcoinfundi/current/vendor/bundle/ruby/2.2.0/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. 3820920586 was converted to "3820920586". (StandardWarning)
/home/deploy/bitcoinfundi/current/vendor/bundle/ruby/2.2.0/gems/figaro-1.1.1/lib/figaro/application.rb:84:in `non_string_configuration!' : WARNING: Use strings for Figaro configuration. false was converted to "false". (StandardWarning)
: No such file or directory

If it helps the only thing I suspect could have cause this was upgrading the the rails gem from version 4.1.25 to version 4.2.5 - but I'm not sure whether this could be the cause. How can I troubleshoot this.

Change pid default location from log/ to tmp/pids/

Documentation states "All pids and logs will live in the normal log/ folder. This helps to make things Capistrano friendly.". The default location using Capistrano is tmp/pidsand not log/. Shouldn't this default location be changed to tmp/pids?

i.e.:

dir_mode: normal
dir: tmp/pids

error running lib/daemons/*_ctl script under ruby 1.9.3

error under 1.9.3

/Users/andrew/.rvm/gems/ruby-1.9.3-p327/gems/daemons-rails-1.1.0/lib/daemons/rails/configuration.rb:8:in `detect_root': uninitialized constant Daemons::Rails::Configuration::Pathname

i added the following to my _ctl script and it now works:

require 'pathname'
require 'fileutils'

maintainers?

@mirasrael I noticed the request for maintainers. Can you give a bit more information on where you need help with? We use this gem on our projects and would love to lend a hand and keep it up to date.

If it is simply a matter of fixing bugs, looks like the list is short. But I am assuming you have a longer work list that you have in mind that may not be captures in the issues list.

Thanks

Generate works once. Second execution runs daemons (Rails 4.0.2, Ruby 2.0.0).

$ rails generate daemon test
      create  lib/daemons/daemons
       chmod  lib/daemons/daemons
      create  lib/daemons/test.rb
       chmod  lib/daemons/test.rb
      create  lib/daemons/test_ctl
       chmod  lib/daemons/test_ctl

$ rails generate daemon import_submissions
/Users/tom/LGL_DEV/lglforms/lib/daemons/test.rb:20:in `<top (required)>': undefined method `auto_flushing=' for #<ActiveSupport::Logger:0x007fb80c24a790> (NoMethodError)

The error is due to auto_flushing no longer available in Rails 4, but that is another issue.

The result is you can only generate one daemon. You have to delete the lib/daemons directory to get it to generate another.

Control scripts don't load bundler

The generated _ctl scripts don't require 'bundler/setup' and so don't see gem files that bundler has downloaded that are not part of the main gem install.

I ran into this after setting up my Gemfile to use the git head version of daemons-rails (which rvm and bundler installed to /usr/local/rvm/gems/ruby-head@rails4/bundler/gems/daemons-rails-0bf7123eb5e6) rubygems doesn't pick that up if you don't include bundler.

The simple fix was to just add require 'bundler/setup' right after require 'rubygems'

New life for project (please join if you feed you may be useful)

Hello,
First of all i want to Say Thank You for this gem . I have been using it succesfully for a long time .
I recently saw You are looking for someone who can maintain the repository. I am interested in helping as much as i can. Let me know how can i help.

I would also appreciate If You could give me some pointers maybe in the right direcțion..about what You might have planned to implement or something that maybe You already started and i could help with the implementation.
Let me know if You will accept my help

Thank You very much.

RSpec doesn't run

Firstly, I love this gem - it's really handy.

I don't know if I'm doing something wrong, but I can't seem to run RSpec when I have the daemon in the lib/daemons folder. Rspec just stays frozen with no error message. It seems as if RSpec is actually running (or loading?) the daemon and stays in the endless loop of the daemon without proceeding to run any of the specs. If I move the daemons out of the lib folder, the specs run fine.

Thanks for your help!

How to access active records ?

Hi,

I would like to access active record from the daemon process and update the db records with the data I received from sockets.

Please throw some light on it.

Thanks.

Can not attach debugger

I try using byebug to set breakpoints bug get *** No sourcefile available for my_listener.rb

License missing from gemspec

Some companies will only use gems with a certain license.
The canonical and easy way to check is via the gemspec,

via e.g.

spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']

Even for projects that already specify a license, including a license in your gemspec is a good practice, since it is easily
discoverable there without having to check the readme or for a license file. For example, it is the field that rubygems.org uses to display a gem's license.

For example, there is a License Finder gem to help companies ensure all gems they use
meet their licensing needs. This tool depends on license information being available in the gemspec. This is an important enough
issue that even Bundler now generates gems with a default 'MIT' license.

If you need help choosing a license (sorry, I haven't checked your readme or looked for a license file), github has created a license picker tool.

In case you're wondering how I found you and why I made this issue, it's because I'm collecting stats on gems (I was originally looking for download data) and decided to collect license metadata,too, and make issues for gemspecs not specifying a license as a public service :).

I hope you'll consider specifying a license in your gemspec. If not, please just close the issue and let me know. In either case, I'll follow up. Thanks!

p.s. I've written a blog post about this project
p.p.s. Here's a list of the license names I've found and their frequenceis

TCP server as daemon

Hello,

I have placed TCP server code in daemon as below, is it correct ?

while($running) do

Replace this with your code

require 'socket' # Get sockets from stdlib

server = TCPServer.open(8080) # Socket to listen on port 2000
loop { # Servers run forever
client = server.accept # Wait for a client to connect
data = client.recv(20)
data = client.recv(1024)
# data = data.split(" ")
# puts data.unpack('C*')
# client.puts "Closing the connection. Bye!"
client.puts data
client.close # Disconnect from the client
}

Rails.logger.auto_flushing = true
Rails.logger.info "This daemon is still running at #{Time.now}.\n"

sleep 10

end

Thanks.

Doesn't run when config.cache_classes = true?

Hi Mirasrael,

Thanks again for this gem, it makes daemon creating a cinch.

I'm finding that the dameon runs perfectly when in my environment (like development), config.cache_classes is set to false, but the daemon fails when config.cache_classes = true (such as in production).

Here is the out put in the daemon logfile:
below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally
NameError: method mimes_for_respond_to' not defined in Class 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 NoMemoryError: failed to allocate memory SystemStackError: stack level too deep fatal: exception reentered NameError: uninitialized constant Api::V1 NameError: method_helpers' not defined in Class
LoadError: Expected /home/deploy/rails_apps/swipedeals/releases/20120827154212/app/admin/customers.rb to define Customers
NameError: method active_admin_comment_ids=' not defined in Customer NameError: methodactive_admin_comments=' not defined in Customer
NameError: method active_admin_comment_ids' not defined in Customer NameError: methodactive_admin_comments' not defined in Customer
I18n::MissingTranslationData: translation missing: en, activerecord, models, customer
NameError: method resources_configuration' not defined in Class NameError: methodparents_symbols' not defined in Class
NameError: uninitialized constant AdminCustomer
NameError: method resource_class' not defined in Class NameError: uninitialized constant Admin::Customer NameError: method_layout' not defined in Admin::CustomersController
NameError: method middleware_stack' not defined in Class LoadError: Missing helper file helpers/admin/customers_helper.rb LoadError: no such file to load -- admin/customers_helper NameError: method_helpers' not defined in Class
LoadError: no such file to load -- api/v1/base_helper
NameError: uninitialized constant Customers
NameError: method mimes_for_respond_to' not defined in Class LoadError: Missing helper file helpers/api/v1/base_helper.rb NameError: method_layout' not defined in CouponsController
NameError: method middleware_stack' not defined in Class LoadError: Missing helper file helpers/coupons_helper.rb LoadError: no such file to load -- coupons_helper NameError: method_helpers' not defined in Class
NameError: method _layout' not defined in CartOrdersController NameError: methodmiddleware_stack' not defined in Class
LoadError: Missing helper file helpers/cart_orders_helper.rb
LoadError: no such file to load -- cart_orders_helper
NameError: method _helpers' not defined in Class NameError: methodmiddleware_stack' not defined in Class
NameError: method _layout' not defined in CaptiveCustomersController NameError: methodmiddleware_stack' not defined in Class
LoadError: Missing helper file helpers/captive_customers_helper.rb
LoadError: no such file to load -- captive_customers_helper
NameError: method _helpers' not defined in Class NameError: method_layout' not defined in Api::V1::BaseController
NameError: method _layout' not defined in Api::V1::DealsController NameError: methodmiddleware_stack' not defined in Class
LoadError: Missing helper file helpers/api/v1/deals_helper.rb
LoadError: no such file to load -- api/v1/deals_helper
NameError: method _helpers' not defined in Class NameError: method_layout' not defined in Api::V1::CaptiveCustomersController
NameError: method middleware_stack' not defined in Class LoadError: Missing helper file helpers/api/v1/captive_customers_helper.rb LoadError: no such file to load -- api/v1/captive_customers_helper NameError: method_helpers' not defined in Class
NameError: method `mimes_for_respond_to' not defined in Class

I'm using Rails 3.0.1, and we're using Active Admin (just mentioning that because some active admin stuff is in the logfile).

Do you have any idea what could be affecting the daemon depending on what cache_classes is set to?

Thanks so much!

ERROR -- : Bad file descriptor (Errno::EBADF)

I am getting below error when I start daemon as "rake daemon:park:start" also my source code snippet is attached below.

I am not getting any error when I run it in forground as below
[kpatil@dhcppc21 svg_nload]$ rake daemon:park

[kpatil@dhcppc21 svg_nload]$ tail -100 log/park.rb.log

[2015-06-19T11:31:28.804611 #4047] ERROR -- : Bad file descriptor (Errno::EBADF)
/home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons/daemonize.rb:133:in for_fd' /home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons/daemonize.rb:133:inblock in close_io'
/home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons/daemonize.rb:132:in upto' /home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons/daemonize.rb:132:inclose_io'
/home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons/daemonize.rb:110:in daemonize' /home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons/application.rb:162:instart_load'
/home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons/application.rb:297:in start' /home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons/controller.rb:56:inrun'
/home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons.rb:144:in block in run' /home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons/cmdline.rb:88:incall'
/home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons/cmdline.rb:88:in catch_exceptions' /home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-1.2.2/lib/daemons.rb:143:inrun'
/home/kpatil/.rvm/gems/ruby-2.2.2/gems/daemons-rails-1.2.1/lib/daemons/rails.rb:16:in run' lib/daemons/park_ctl:6:in

'
E, [2015-06-19T11:31:28.804674 #4047] ERROR -- : Bad file descriptor (Errno::EBADF)

[kpatil@dhcppc21 svg_nload]$ vi lib/daemons/park.rb

!/usr/bin/env ruby

require 'socket' # Get sockets from stdlib
require 'parkmgmt/udpserver'
...
....

Replace this with your code

server = ParkServ::UDPServer.new(2000)
server.start

[kpatil@dhcppc21 svg_nload]$ vi lib/parkmgmt/udpserver.rb

require 'socket'

module ParkServ
class UDPServer
def initialize(port)
@PORT = port
end

def start
  @socket = UDPSocket.new
  @socket.bind("", @port) # is nil OK here?
  while true
      handle(@socket)
  end
end

def handle(socket)
      puts "I am here"
end

end
end

it's not working with activeadmin

when runs the ./lib/daemons/mail_ctl start
it will raise something like
app/admin/admin_user.rb:3:in `<top (required)>': uninitialized constant AdminUser (NameError)

Error on stop: cannot load such file -- daemons/rails/config (LoadError)

Just installed this gem and I love what it does. Thank you for creating it. Using just the simple_daemon created by your generator, when I start the daemon everything is fine, logging every 10 seconds. But when I stop it (./lib/daemons/simple_daemon_ctl stop), it creates the log file log/simple_daemon.rb.log containing the errors:

# Logfile created on 2013-08-26 16:50:35 -0400 by logger.rb/36483
I, [2013-08-26T16:50:35.353122 #41824]  INFO -- : *** below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally ***
E, [2013-08-26T16:50:35.353364 #41824] ERROR -- : cannot load such file -- daemons/rails/config (LoadError)
/Users/russ/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
/Users/russ/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
./lib/daemons/simple_daemon_ctl:3:in `<main>'
I, [2013-08-26T16:50:35.353531 #41824]  INFO -- : *** 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 ***
E, [2013-08-26T16:50:35.354616 #41824] ERROR -- : stream closed (IOError)
E, [2013-08-26T16:50:35.354806 #41824] ERROR -- : failed to allocate memory (NoMemoryError)
E, [2013-08-26T16:50:35.354926 #41824] ERROR -- : stack level too deep (SystemStackError)
E, [2013-08-26T16:50:35.355246 #41824] ERROR -- : exception reentered (#<Class:0x007fbfe40e0758>)    
E, [2013-08-26T16:50:35.369170 #41824] ERROR -- : cannot load such file -- daemons/rails/config (LoadError)
/Users/russ/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
/Users/russ/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
./lib/daemons/simple_daemon_ctl:3:in `<main>'

The only change I made to the generated code was commenting out Rails.logger.auto_flushing = true because I use log4r. Everything seems to work, but it would be better not to have errors in the log file.

I'm using rvm, ruby 2.0.0p247, and Rails 4.0.0.

-Russ

Conflict with daemons gem?

Hi Mirasrael,

Thanks for making this gem. I'm looking forward to getting daemons running in a rails 3.2.7 app.

A quick question (because I'm stumped)... when I try to start a simple daemon I made called newsletter_sender,

./lib/daemons/newsletter_sender_ctl start [FAILS]

I get the following error:

require: no such file to load -- daemons/rails/config (LoadError)

If I run the .rb file directly, it loads up my rails environment and does it's thing nicely. I can tail my development.log and see the daemon running, querying the database, etc.

./lib/daemons/newsletter_sender.rb [WORKS]

After a long time trying to learn how this error is happening, I'm thinking that for some reason, it's trying to load the normal daemons gem (1.1.8), which I have installed. That gem doesn't have the extra /rails/config or /rails.rb files et. al. that are required in the _ctl file.

Can you please help me figure out this issue? I'd very much appreciate learning why this is happening and how to fix it.

This is on a Rails 3.2.7 application.
I'm using rbenv with ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0] in development, and
apache2/passenger ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] in production.

Both environments are experiencing the same error.

Here is the contents of my newsletter_sender_ctl file:

#!/usr/bin/env ruby
require 'rubygems'
require "daemons"
require "daemons/rails/config"
require "daemons/rails"

root = Daemons::Rails.configuration.detect_root
config = Daemons::Rails::Config.new("newsletter_sender", root, Pathname.new(File.expand_path(__FILE__)).parent.relative_path_from(root))

Daemons.run File.dirname(__FILE__) + "/newsletter_sender.rb", config.to_hash

And the contents of my newsletter_sender.rb file:

#!/usr/bin/env ruby

ENV["RAILS_ENV"] ||= "development"

root = File.expand_path(File.dirname(__FILE__))
root = File.dirname(root) until File.exists?(File.join(root, 'config'))
require File.join(root, "config", "environment")

$running = true
Signal.trap("TERM") do 
  $running = false
end

while($running) do

    n = Newsletter.next_for_delivery

    if n
        n.deliver 
    else
        sleep 60
    end

end

Here's my Gemfile.lock file contents:

GIT
  remote: git://github.com/gregbell/active_admin.git
  revision: 3130933893714019684d5713e6afba92a7717d2d
  specs:
    activeadmin (0.4.4)
      arbre (>= 1.0.0.rc4)
      bourbon (>= 1.0.0)
      devise (>= 1.1.2)
      fastercsv
      formtastic (>= 2.0.0)
      inherited_resources (>= 1.3.1)
      jquery-rails (>= 1.0.0)
      kaminari (>= 0.13.0)
      meta_search (>= 0.9.2)
      rails (>= 3.0.0)
      sass (>= 3.1.0)

GIT
  remote: git://github.com/mirasrael/daemons-rails.git
  revision: cdd52d907f6e3d280af4a9ee45d8a66e83735022
  specs:
    daemons-rails (1.0.0)
      daemons
      multi_json (~> 1.0)
      rails (~> 3.0)

GEM
  remote: http://rubygems.org/
  specs:
    actionmailer (3.2.7)
      actionpack (= 3.2.7)
      mail (~> 2.4.4)
    actionpack (3.2.7)
      activemodel (= 3.2.7)
      activesupport (= 3.2.7)
      builder (~> 3.0.0)
      erubis (~> 2.7.0)
      journey (~> 1.0.4)
      rack (~> 1.4.0)
      rack-cache (~> 1.2)
      rack-test (~> 0.6.1)
      sprockets (~> 2.1.3)
    activemodel (3.2.7)
      activesupport (= 3.2.7)
      builder (~> 3.0.0)
    activerecord (3.2.7)
      activemodel (= 3.2.7)
      activesupport (= 3.2.7)
      arel (~> 3.0.2)
      tzinfo (~> 0.3.29)
    activeresource (3.2.7)
      activemodel (= 3.2.7)
      activesupport (= 3.2.7)
    activesupport (3.2.7)
      i18n (~> 0.6)
      multi_json (~> 1.0)
    acts_as_commentable (3.0.1)
    acts_as_list (0.1.7)
    ansi (1.4.3)
    ar_mailer_rails3 (2.1.12)
    arbre (1.0.0)
      activesupport (>= 3.0.0)
    arel (3.0.2)
    aws-sdk (1.6.0)
      httparty (~> 0.7)
      json (~> 1.4)
      nokogiri (>= 1.4.4)
      uuidtools (~> 2.1)
    bcrypt-ruby (3.0.1)
    bourbon (2.1.1)
      sass (>= 3.1)
    builder (3.0.0)
    chronic (0.6.7)
    chunky_png (1.2.5)
    cocaine (0.2.1)
    coffee-rails (3.2.2)
      coffee-script (>= 2.2.0)
      railties (~> 3.2.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.3.3)
    compass (0.12.2)
      chunky_png (~> 1.2)
      fssm (>= 0.2.7)
      sass (~> 3.1)
    compass-rails (1.0.3)
      compass (>= 0.12.2, < 0.14)
    daemons (1.1.8)
    db2fog (0.8.0)
      activerecord (~> 3.0)
      fog (~> 1.0)
      rails (~> 3.0)
    devise (2.1.2)
      bcrypt-ruby (~> 3.0)
      orm_adapter (~> 0.1)
      railties (~> 3.1)
      warden (~> 1.2.1)
    erubis (2.7.0)
    exception_notification (2.6.1)
      actionmailer (>= 3.0.4)
    excon (0.15.4)
    execjs (1.4.0)
      multi_json (~> 1.0)
    fastercsv (1.5.5)
    fog (1.5.0)
      builder
      excon (~> 0.14)
      formatador (~> 0.2.0)
      mime-types
      multi_json (~> 1.0)
      net-scp (~> 1.0.4)
      net-ssh (>= 2.1.3)
      nokogiri (~> 1.5.0)
      ruby-hmac
    formatador (0.2.3)
    formtastic (2.2.1)
      actionpack (>= 3.0)
    fssm (0.2.9)
    has_scope (0.5.1)
    hike (1.2.1)
    httparty (0.8.3)
      multi_json (~> 1.0)
      multi_xml
    i18n (0.6.0)
    inherited_resources (1.3.1)
      has_scope (~> 0.5.0)
      responders (~> 0.6)
    journey (1.0.4)
    jquery-rails (2.0.2)
      railties (>= 3.2.0, < 5.0)
      thor (~> 0.14)
    json (1.7.4)
    kaminari (0.13.0)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
      railties (>= 3.0.0)
    mail (2.4.4)
      i18n (>= 0.4.0)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    meta_search (1.1.3)
      actionpack (~> 3.1)
      activerecord (~> 3.1)
      activesupport (~> 3.1)
      polyamorous (~> 0.5.0)
    mime-types (1.19)
    multi_json (1.3.6)
    multi_xml (0.5.1)
    mysql2 (0.3.11)
    net-scp (1.0.4)
      net-ssh (>= 1.99.1)
    net-ssh (2.5.2)
    nokogiri (1.5.5)
    orm_adapter (0.4.0)
    paperclip (2.7.0)
      activerecord (>= 2.3.0)
      activesupport (>= 2.3.2)
      cocaine (>= 0.0.2)
      mime-types
    polyamorous (0.5.0)
      activerecord (~> 3.0)
    polyglot (0.3.3)
    rack (1.4.1)
    rack-cache (1.2)
      rack (>= 0.4)
    rack-raw-upload (1.1.0)
      json
    rack-ssl (1.3.2)
      rack
    rack-test (0.6.1)
      rack (>= 1.0)
    rails (3.2.7)
      actionmailer (= 3.2.7)
      actionpack (= 3.2.7)
      activerecord (= 3.2.7)
      activeresource (= 3.2.7)
      activesupport (= 3.2.7)
      bundler (~> 1.0)
      railties (= 3.2.7)
    railties (3.2.7)
      actionpack (= 3.2.7)
      activesupport (= 3.2.7)
      rack-ssl (~> 1.3.2)
      rake (>= 0.8.7)
      rdoc (~> 3.4)
      thor (>= 0.14.6, < 2.0)
    rake (0.9.2.2)
    rdoc (3.12)
      json (~> 1.4)
    responders (0.9.2)
      railties (~> 3.1)
    rich (1.2.0)
      jquery-rails
      kaminari
      mime-types
      paperclip
      rack-raw-upload
      rails (>= 3.2.0)
      sass-rails
    riddle (1.5.2)
    ruby-hmac (0.4.0)
    sass (3.1.20)
    sass-rails (3.2.5)
      railties (~> 3.2.0)
      sass (>= 3.1.10)
      tilt (~> 1.3)
    sitemap_generator (3.1.1)
      builder
    sprockets (2.1.3)
      hike (~> 1.2)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    thinking-sphinx (2.0.12)
      activerecord (>= 3.0.3)
      builder (>= 2.1.2)
      riddle (>= 1.5.2)
    thor (0.15.4)
    tilt (1.3.3)
    treetop (1.4.10)
      polyglot
      polyglot (>= 0.3.1)
    turn (0.8.2)
      ansi (>= 1.2.2)
    tzinfo (0.3.33)
    uglifier (1.2.6)
      execjs (>= 0.3.0)
      multi_json (~> 1.3)
    uuidtools (2.1.3)
    warden (1.2.1)
      rack (>= 1.0)
    whenever (0.7.3)
      activesupport (>= 2.3.4)
      chronic (~> 0.6.3)
    will_paginate (3.0.3)

PLATFORMS
  ruby

DEPENDENCIES
  activeadmin!
  acts_as_commentable
  acts_as_list
  ar_mailer_rails3
  aws-sdk
  coffee-rails (~> 3.2.1)
  compass-rails
  daemons-rails!
  db2fog
  exception_notification
  jquery-rails
  mysql2
  paperclip (= 2.7)
  rails (= 3.2.7)
  rich
  sass-rails (~> 3.2.3)
  sitemap_generator
  thinking-sphinx
  turn (= 0.8.2)
  uglifier (>= 1.0.3)
  whenever
  will_paginate (> 3.0)

On JRuby the rake path gets confused

I go to the root directory of my rails project and run

rake daemons:start --trace

and the response is

C:\JRuby\bin\rake: No such file or directory - lib/daemons/daemons

It is looking for lib/daemons/daemons from the C:\JRuby\bin\rake directory. Why? How can I specify my lib dir?

daemon with "_monitor" suffix in name does not stop properly

I have daemon with name "tasks_monitor".
It was starting fine but didn't want to stop with any of available commands.
Renaming to "tasks_executor" solved issue.

So, this is an undocumented feature or bug - daemons should have "_monitor" in their names.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.