Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ost(1)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 CHANGELOG.md
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 ost-bin.gemspec Use the version in the version file. July 05, 2012
README.md

ost(1)

Just an experiment for running daemonized Ost workers.

Usage

Assuming a simple worker:

require "app"

Ost[:stuff].each do |item|
  # process item
end

Place the worker at ./workers/stuff.rb and then:

$ ost start stuff

That should load the worker in the foreground.

You can daemonize the process by passing the -d flag:

$ ost start -d stuff

If you daemonize, a file containing the daemonized process ID is written to ./workers/stuff.pid.

Given that start is the default action for running Ost workers it can be omitted:

$ ost -d stuff

You can kill a daemonized worker by issuing the stop command:

$ ost kill stuff

This will send the TERM signal to the process.

If you want to store your PID files in a directory other than ./workers, use -p:

$ ost stuff -d -p /var/run

Support

For now, this experiment is only tested on MRI 1.9.2+.

Something went wrong with that request. Please try again.