Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Threads : Servers : Forks : Daemons

Merge pull request #11 from lmarlow/patch-1

Fix documentation typo for the shutdown_command argument in Servolux::Daemon#initialize
latest commit 7729f08a2a
Tim Pease authored June 25, 2012
Octocat-spinner-32 examples Add preforking_server example February 08, 2012
Octocat-spinner-32 lib Merge pull request #11 from lmarlow/patch-1 June 25, 2012
Octocat-spinner-32 spec Add strict interval semantics to the threaded class February 23, 2012
Octocat-spinner-32 .gitignore adding .rvmrc to the gitignore file April 29, 2012
Octocat-spinner-32 .travis.yml adding ruby 1.8.7 January 06, 2012
Octocat-spinner-32 History.txt Version bump and updating history. February 18, 2012
Octocat-spinner-32 README.rdoc fixing typos January 21, 2012
Octocat-spinner-32 Rakefile fixing up the home URL April 29, 2012
Octocat-spinner-32 version.txt Version bump and updating history. February 18, 2012
README.rdoc

Serv-O-Lux

by Tim Pease

DESCRIPTION

Serv-O-Lux is a collection of Ruby classes that are useful for daemon and process management, and for writing your own Ruby services. The code is well documented and tested. It works with Ruby and JRuby supporting both 1.8 and 1.9 interpreters.

FEATURES

Servolux::Threaded – when included into your own class, it gives you an activity thread that will run some code at a regular interval. Provides methods to start and stop the thread, report on the running state, and join the thread to wait for it to complete.

Servolux::Server – a template server class that handles the mundane work of creating / deleting a PID file, reporting running state, logging errors, starting the service, and gracefully shutting down the service.

Servolux::Piper – an extension of the standard Ruby fork method that opens a pipe for communication between parent and child processes. Ruby objects are passed between parent and child allowing, for example, exceptions in the child process to be passed to the parent and raised there.

Servolux::Daemon – a robust class for starting and stopping daemon processes.

Servolux::Child – adds some much needed functionality to child processes created via Ruby's IO#popen method. Specifically, a timeout thread is used to signal the child process to die if it does not exit in a given amount of time.

Servolux::Prefork – provides a pre-forking worker pool for executing tasks in parallel using multiple processes.

All the documentation is available online at rdoc.info/projects/TwP/servolux

INSTALL

gem install servolux

LICENSE

(The MIT License)

Copyright © 2009

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.