summaryrefslogtreecommitdiff
path: root/rel
diff options
context:
space:
mode:
Diffstat (limited to 'rel')
-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