# ANN: capistrano-runit-tasks 0.1.0

**URL:** <https://www.ruby-forum.com/t/ann-capistrano-runit-tasks-0-1-0/55267>\
**Category:** Rails\
**Created:** [March 18, 2006, 8:44pm UTC](https://www.ruby-forum.com/t/ann-capistrano-runit-tasks-0-1-0/55267 "2006-03-18T20:44:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_McGrath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/4bbf92/32.png) [@Chris\_McGrath](https://www.ruby-forum.com/u/Chris_McGrath)\
**Post date:** [March 18, 2006, 8:44pm UTC](https://www.ruby-forum.com/t/ann-capistrano-runit-tasks-0-1-0/55267/1 "2006-03-18T20:44:34Z")

</div>

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](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/](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

---

<div class="post-metadata">

**Author:** ![Chris\_McGrath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/4bbf92/32.png) [@Chris\_McGrath](https://www.ruby-forum.com/u/Chris_McGrath)\
**Post date:** [March 19, 2006, 2:36am UTC](https://www.ruby-forum.com/t/ann-capistrano-runit-tasks-0-1-0/55267/2 "2006-03-19T02:36:01Z")

</div>

Very cool Chris.

-Ezra

---

<div class="post-metadata">

**Author:** ![Chris\_McGrath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/4bbf92/32.png) [@Chris\_McGrath](https://www.ruby-forum.com/u/Chris_McGrath)\
**Post date:** [March 19, 2006, 9:45pm UTC](https://www.ruby-forum.com/t/ann-capistrano-runit-tasks-0-1-0/55267/3 "2006-03-19T21:45:02Z")

</div>

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.

Cheers,

Chris
