Forum: Ruby on Rails ANN: capistrano-runit-tasks 0.1.0

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris McGrath (Guest)
on 2006-03-18 21:44
(Received via mailing list)
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
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
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
than sv.

The current version assumes you have a runit setup similar to the one
in, i.e. a supervised
where links can be created to get tasks monitored.

It's available through gems, as a tar.gz or zip from http:// 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,
* 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,


Ezra Z. (Guest)
on 2006-03-19 03:36
(Received via mailing list)
Very cool Chris.

Chris McGrath (Guest)
on 2006-03-19 22:45
(Received via mailing list)
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 removed_email_address@domain.invalid. 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.


This topic is locked and can not be replied to.