From dd586292bdb6b6ea16b70351c2ca4d20793ac772 Mon Sep 17 00:00:00 2001 From: Brad Anderson Date: Fri, 20 Aug 2010 11:06:54 -0400 Subject: adding runit example --- rel/sv/README | 1 + rel/sv/dbcore/log/main/current | 0 rel/sv/dbcore/log/run | 2 ++ rel/sv/dbcore/run | 4 ++++ 4 files changed, 7 insertions(+) create mode 100644 rel/sv/README create mode 100644 rel/sv/dbcore/log/main/current create mode 100755 rel/sv/dbcore/log/run create mode 100755 rel/sv/dbcore/run (limited to 'rel/sv') 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 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 -- cgit v1.2.3