summaryrefslogtreecommitdiff
path: root/rel/sv
diff options
context:
space:
mode:
Diffstat (limited to 'rel/sv')
-rw-r--r--rel/sv/README1
-rw-r--r--rel/sv/bigcouch/log/main/current0
-rwxr-xr-xrel/sv/bigcouch/log/run2
-rwxr-xr-xrel/sv/bigcouch/run4
4 files changed, 7 insertions, 0 deletions
diff --git a/rel/sv/README b/rel/sv/README
new file mode 100644
index 00000000..b5cc7404
--- /dev/null
+++ b/rel/sv/README
@@ -0,0 +1 @@
+This is an example of a BigCouch runit (http://smarden.org/runit/) service. Use it to start/stop/restart BigCouch. You may need to adjust the "run" script for install location and the home directory BigCouch will run as.
diff --git a/rel/sv/bigcouch/log/main/current b/rel/sv/bigcouch/log/main/current
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/rel/sv/bigcouch/log/main/current
diff --git a/rel/sv/bigcouch/log/run b/rel/sv/bigcouch/log/run
new file mode 100755
index 00000000..3195b018
--- /dev/null
+++ b/rel/sv/bigcouch/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst svlogd -tt ./main
diff --git a/rel/sv/bigcouch/run b/rel/sv/bigcouch/run
new file mode 100755
index 00000000..875c3f02
--- /dev/null
+++ b/rel/sv/bigcouch/run
@@ -0,0 +1,4 @@
+#!/bin/bash
+exec 2>&1
+export HOME=/home/bigcouch
+exec chpst -u bigcouch /opt/bigcouch/bin/bigcouch