Very cool Chris.
-Ezra
On Mar 18, 2006, at 11:43 AM, Chris McGrath wrote:
> I''d like to announce the first release of capistrano-runit-tasks.
> This came about as I wanted to use runit rather than spinner/
> spawner/reaper on my memory limited VPS but should be useable for
> any setup.
>
> From the README:
>
> This library extends Capistrano to allow processes to be supervised
> using the
> runit package. It replaces some of the standard tasks with runit
> versions and
> includes tasks and helpers to create the service directory layout
> and populate
> it with run scripts. It currently only supports fcgi listeners, but
> tries to
> make it easy to add other services in your deploy.rb.
>
> == Status
>
> capistrano-runit-tests 0.1.0 (known as cap-runit from now on) is
> the first
> release of the library. It will need more work to be useful to
> everybody who
> uses runit. The intention of releasing it now is to find out which
> areas need
> improvement first and get working on them. It''s was developed and
> tested with
> the Debian sarge version of runit, 1.0.5 so currently uses
> runsvctrl rather
> than sv.
>
> The current version assumes you have a runit setup similar to the
> one created
> in http://www.defendem.com/read/chapter/5#page6, i.e. a supervised
> directory
> where links can be created to get tasks monitored.
>
> It''s available through gems, as a tar.gz or zip from http://
> rubyforge.org/projects/cappy-runit/. You may have to wait a bit
> till rubyforge has the gem file available.
>
> The current TODO list is:
>
> * Make runner.create use file based templates
> * Intead of run "runsvctrl ..." have an sv helper method like
> sv :up, svc_dir
> * Setting for sv program to use, runsvctrl or sv
> * Automatically create log directories with custom templates
> * add_service(path, runner, logger = nil) helper function
> e.g. add_service(path, {:template => ''my_runner'',
:port => 1234})
> Which would set a custom runner and a standard logger
> * Allow add_service to create more than one directory to be supervised
> * Add task to automate switching from spinner
>
>
> Let me know if you find this useful or have problems,
>
> Cheers,
>
> Chris
>
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>