ANN: capistrano-runit-tasks 0.1.0

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

Very cool Chris.

-Ezra

On 19 Mar 2006, at 01:30, Ezra Z. wrote:

Very cool Chris.

-Ezra

Thanks Ezra and Jeremy. If you’re using this please send ideas/bugs
to [email protected]. I’ve got tests set up in svn now, so am
planning to go through the TODO list over the next week or so as I
get time.

Cheers,

Chris