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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0b1b1c3a746a2e346d8cae668b109b6e?d=identicon&s=25 Chris McGrath (Guest)
on 2006-03-18 20: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
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
8e44c65ac5b896da534ef2440121c953?d=identicon&s=25 Ezra Zygmuntowicz (Guest)
on 2006-03-19 02:36
(Received via mailing list)
Very cool Chris.

-Ezra
0b1b1c3a746a2e346d8cae668b109b6e?d=identicon&s=25 Chris McGrath (Guest)
on 2006-03-19 21:45
(Received via mailing list)
On 19 Mar 2006, at 01:30, Ezra Zygmuntowicz wrote:

> Very cool Chris.
>
> -Ezra
>

Thanks Ezra and Jeremy. If you're using this please send ideas/bugs
to chris@octopod.info. 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
This topic is locked and can not be replied to.