Every repository with this icon (
Every repository with this icon (
| Description: | Daemon Kit aims to simplify creating Ruby daemons by providing a sound application skeleton (through a generator), task specific generators (jabber bot, etc) and robust environment management code. edit |
-
Hi. The example config.multiple option in the environment file is mispelled ("mulitple") but even when corrected I get
undefined method `multiple=' for #<DaemonKit::Configuration:0x1159590> (NoMethodError)When I try to run the example daemon.
Comments
-
Question on threadpool, ubuntu, multithreaded/jruby
0 comments Created 2 months ago by decodeideasI am looking at your thread pool implementation. I am trying to use ruby 1.9.1 on ubuntu. I see you have comments in there about 1.9 not working on os x. Is it worthwhile trying on ubuntu you think?
Also have you tried in jruby and multithreads? I deployed java on the jvm and it was relatively stable?
Marius
Comments
-
monit.erb template wont work on many systems where ruby is not in limited system path
4 comments Created 2 months ago by grempeMonit sets an extremely limited PATH environment for scripts it runs. If you are using REE or installed ruby in /usr/local/bin the monit script daemon kit generates will fail silently.
To resolve I needed to explicity add the ruby command to the start and stop command:
/usr/local/bin/rubye.g.
start program = "/usr/bin/env DAEMON_ENV=production /usr/local/bin/ruby /home/rails/foobardaemon/current/bin/foobardaemon start" as uid rails and gid railsAlso, the monit generation scripts generate a path which points to a SPECIFIC release. It is better to instead point to the /current/ path for the start/stop/and PID. Otherwise you would be required to push a new monit file on each daemon kit cap deploy, put it in the right place, and restart the remote monit server.
Cheers! (I love daemon-kit BTW!)
Comments
kennethkalmer
Mon Nov 02 13:31:18 -0800 2009
| link
Should have had our discussion here, sigh...
Pushed a new branch up for testing (deploy_paths). The basic premise is that when capistrano deploys the daemon it will create a new file called ENVIRONMENT in the daemon's root directory. The file is a YAML hash with two respected keys at the moment:
daemon_root: /path ruby_path: /path/to/interpreterIf the daemon_root key is present (defaults to the capistrano symlink), the rake tasks will overwrite the release specific path to that value. ruby_path is detected by calling 'which ruby' during deploy, if the key is present it will be prefixed in the monit/god config files where appropriate.
Please let me know what you think so I can update the docs and merge to master.
Thanks for reporting !
Is there a way to override the specific version of Ruby to use prior to deploy? I am concerned that 'which ruby' is dependent on the PATH being set the same for the user that cap uses to deploy, and the potentially different path for the user running the script. e.g. what if cap deploys as root who finds ruby in /bin/ruby, and the script runs as user foouser who has /usr/local/bin prepended to PATH so that users version of ruby would be /usr/local/bin/ruby (as in the case where Ruby Enterprise Edition is being used).
kennethkalmer
Thu Nov 05 00:25:14 -0800 2009
| link
Good call, I'll update the deployment recipe so that you can explicitly set the interpreter path and have it fail over to "which ruby" if not set.
Thanks
kennethkalmer
Sun Nov 08 05:58:39 -0800 2009
| link
Just pushed an update to the deploy_paths branch which has this in, it seems to be working fine for me.
In the deployment, set :ruby_path to the correct location of the interpreter.
As a side note, I made the stop & start commands also use the ruby_path which may or may not work as expected based on the availability of the GEM_HOME environment variable.
Please let me know how this looks to you.
Best
-
In at_exit hooks, you can check $! for SystemExit instances. If you find one, you won't want to call exit, in order to preserve the exit status.
The current repo versions avoidance of calling exit works fine too, though.
Comments
-
Cucumber generator doesn't work with current Cucumber (0.5.3)
0 comments Created about 1 hour ago by gcampbellIt attempts to require 'cucumber/version', which doesn't appear to exist anymore. This file was removed in Cucumber commit aslakhellesoy/cucumber@65a9c23 .
Comments











