summaryrefslogtreecommitdiff
path: root/README.rdoc
diff options
context:
space:
mode:
authorMarkus Strauss <Markus@ITstrauss.eu>2011-11-01 11:54:12 -0400
committerMarkus Strauss <Markus@ITstrauss.eu>2011-11-01 11:54:12 -0400
commit4725e08f1872d914c258ef0159389c76dba97f31 (patch)
tree2134f0c253dff5968d7c0ac27988796979bf6ae0 /README.rdoc
parent67a3bcd0e562b2f06503d8d582c097ea7fa4dc89 (diff)
parente4e4a1840b1c26604e1517f06024123a0446338f (diff)
downloadpuppet-runit-4725e08f1872d914c258ef0159389c76dba97f31.tar.gz
puppet-runit-4725e08f1872d914c258ef0159389c76dba97f31.tar.bz2
Merge branch 'master' of https://github.com/mstrauss/puppet-runit
Conflicts: manifests/service.pp
Diffstat (limited to 'README.rdoc')
-rw-r--r--README.rdoc22
1 files changed, 22 insertions, 0 deletions
diff --git a/README.rdoc b/README.rdoc
new file mode 100644
index 0000000..559c3d2
--- /dev/null
+++ b/README.rdoc
@@ -0,0 +1,22 @@
+= README
+Author:: Markus Strauss (mailto:markus@itstrauss.eu)
+Version:: 0.1, 2011-10-27
+
+This is a very basic module to manage the runit[http://smarden.org/runit/] service supervisor.
+
+== Example Usage
+
+ 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/
+ }