blob: 3dd04182e615a1db7efb79d4e1a0254ff5c9a3dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
README
======
Markus Strauss <markus@itstrauss.eu>
v0.1, 2011-10-27
This is a very basic module to manage the http://smarden.org/runit/[runit] service supervisor.
Example Usage
^^^^^^^^^^^^^
[source,txt]
---------------------------------------------------------------------
class { 'runit': }
# define a environment variable, placed under /etc/sv/diaspora_worker/env/QUEUE
runit::env { 'QUEUE': service => 'diaspora_worker' }
# define a service unter /etc/sv/diaspora_worker
runit::service { "diaspora_worker":
user => diaspora, # service user and group
group => diaspora,
rundir => '/var/rails/diaspora', # service run directory
command => 'bundle exec rake resque:work', # command to start the service
enable => true, # enabling the service by
# linking it to /etc/services/
}
---------------------------------------------------------------------
|