diff options
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 |