Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This repository contains the runit job manifests for Protonet.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
README.md

Protonet Runit Jobs

This repository contains the runit job manifests for Protonet.

Configuration

Configuration is in ./config/runit.json, the format should be self-explanatory given the existing examples.

 Testing

Simply:

$ bundle install
$ rake

FakeFS is used so the tests won't trash your filesystem.

Dry-Run

You can dry-run your configuration with:

$ rake dry-run

This will use a temporary directory into which everything should be output, it'll then launch this directory in your file browser.

The dry-run will unfortunately write a bunch of empty directories (one for each service) to /var/log/protonet/..., these shouldn't do any harm as /var/log is more or less ubiquitous.

Installation

You can install the service files by running:

$ sudo rake install

This will (be default) install everything into /etc/sv, these services won't be picked up by the typical runit installation until they are symlinked into /etc/service/, this can be done with:

$ rake symlink
-- or --
$ ls /etc/sv | sudo xargs -i ln -sf /etc/sv/{} /etc/service/{}

Which should symlink them into the monitored directory, once they are symlinked, runit should pick them up within ~5 seconds.

Something went wrong with that request. Please try again.