summaryrefslogtreecommitdiff
path: root/rel/sv
diff options
context:
space:
mode:
authorBrad Anderson <brad@cloudant.com>2010-08-20 11:06:54 -0400
committerBrad Anderson <brad@cloudant.com>2010-08-20 11:06:54 -0400
commitdd586292bdb6b6ea16b70351c2ca4d20793ac772 (patch)
tree8b544624602817c2c92af259d017f91b9a2d2073 /rel/sv
parente3f8001e5c6621d9942fc3832306d1b85f57e503 (diff)
adding runit example
Diffstat (limited to 'rel/sv')
-rw-r--r--rel/sv/README1
-rw-r--r--rel/sv/dbcore/log/main/current0
-rwxr-xr-xrel/sv/dbcore/log/run2
-rwxr-xr-xrel/sv/dbcore/run4
4 files changed, 7 insertions, 0 deletions
diff --git a/rel/sv/README b/rel/sv/README
new file mode 100644
index 00000000..377a2e17
--- /dev/null
+++ b/rel/sv/README
@@ -0,0 +1 @@
+This is an example of a cloudant-dbcore runit (http://smarden.org/runit/) service. Use it to start/stop/restart cloudant-dbcore. You may need to adjust the "run" script for install location and the home directory cloudant-dbcore will run as.
diff --git a/rel/sv/dbcore/log/main/current b/rel/sv/dbcore/log/main/current
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/rel/sv/dbcore/log/main/current
diff --git a/rel/sv/dbcore/log/run b/rel/sv/dbcore/log/run
new file mode 100755
index 00000000..3195b018
--- /dev/null
+++ b/rel/sv/dbcore/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst svlogd -tt ./main
diff --git a/rel/sv/dbcore/run b/rel/sv/dbcore/run
new file mode 100755
index 00000000..a137fab6
--- /dev/null
+++ b/rel/sv/dbcore/run
@@ -0,0 +1,4 @@
+#!/bin/bash
+exec 2>&1
+export HOME=/home/dbcore
+exec chpst -u dbcore /opt/dbcore/bin/dbcore