diff options
author | Brad Anderson <brad@cloudant.com> | 2010-08-20 11:06:54 -0400 |
---|---|---|
committer | Brad Anderson <brad@cloudant.com> | 2010-08-20 11:06:54 -0400 |
commit | dd586292bdb6b6ea16b70351c2ca4d20793ac772 (patch) | |
tree | 8b544624602817c2c92af259d017f91b9a2d2073 /rel | |
parent | e3f8001e5c6621d9942fc3832306d1b85f57e503 (diff) |
adding runit example
Diffstat (limited to 'rel')
-rw-r--r-- | rel/sv/README | 1 | ||||
-rw-r--r-- | rel/sv/dbcore/log/main/current | 0 | ||||
-rwxr-xr-x | rel/sv/dbcore/log/run | 2 | ||||
-rwxr-xr-x | rel/sv/dbcore/run | 4 |
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 |