• Stars
    star
    197
  • Rank 197,722 (Top 4 %)
  • Language
    Ruby
  • Created over 15 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Threads : Servers : Forks : Daemons

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 1.9 and 2.0 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.

Servolux::PidFile -- provides PID file management and process signaling and liveness checks.

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

Install

gem install servolux

License

The MIT License

Copyright (c) 2015 Tim Pease

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.

More Repositories

1

logging

A flexible logging library for use in Ruby programs based on the design of Java's log4j library.
Ruby
523
star
2

webby

NO LONGER UNDER DEVELOPMENT
Ruby
266
star
3

bones

Mr Bones is a handy tool that creates new projects from a code skeleton
Ruby
121
star
4

inifile

Native Ruby package for reading and writing INI files
Ruby
95
star
5

logging-rails

Railtie for integrating the Logging framework with Rails
Ruby
81
star
6

directory_watcher

Event notification for file system changes
Ruby
73
star
7

little-plugger

A gems based plugin framework for Ruby
Ruby
31
star
8

loquacious

tell everyone how to configure your project
Ruby
19
star
9

dotfiles

my dotfiles
Vim Script
18
star
10

jquery-ui.flipbook

jQuery UI FlipBook image viewer
JavaScript
11
star
11

pixel_pi

A library for controlling NeoPixels via Ruby on the RaspberryPi
C
8
star
12

polylog

Logging Framework Abstraction Layer
Ruby
8
star
13

bitwise

Packed binary data manipulation library for Ruby
Ruby
7
star
14

spawner

Manage a collection of child processes in a cross platform fashion
Ruby
7
star
15

mmap

Guy Decuox's mmap library for ruby
C
6
star
16

miscellanea

fun, exciting, and useful chunks of text and software
Tcl
6
star
17

logging-email

An email appender for the Ruby Logging framework
Ruby
5
star
18

expiration-date

auto expiring / auto refreshing attributes for all your ruby classes
Ruby
5
star
19

elasticon-2015

Talk for Elastic{on} 2015
4
star
20

githubbub

making rubyforge and github play together
Ruby
4
star
21

pdf_merge

OS X utility for merging PDF documents
Ruby
4
star
22

enigma

Presentation for the Boulder Ruby Users Group
Ruby
3
star
23

bones-git

Ruby
3
star
24

heap_hop

Ruby heap parser and analyzer
Ruby
3
star
25

bones-rspec

Mr Bones plugin for RSpec
Ruby
3
star
26

bones-extras

Extra plugins for Mr Bones
Ruby
2
star
27

bones-rcov

Mr Bones plugin for rcov tasks
Ruby
2
star
28

logtastic

A web application for storing, searching, and viewing log events
JavaScript
2
star
29

pixelbot

Tasty integration of neopixels and web services
Ruby
2
star
30

bones-yard

Mr Bones plugin for the Yard documentation gem
Ruby
1
star
31

MacCraft

tools for the private MacOS Minecraft server
Ruby
1
star
32

bones-rubyforge

Mr Bones plugin for the Rubyforge gem
Ruby
1
star
33

roadie

environment based configuration
Ruby
1
star
34

bones-zentest

Mr Bones plugin for the ZenTest gem
Ruby
1
star
35

twp.github.io

Pea53 GitHub Pages
CSS
1
star