diff options
author | Kevin Berry <kevin@opensourcealchemist.com> | 2012-01-19 12:43:24 -0600 |
---|---|---|
committer | Kevin Berry <kevin@opensourcealchemist.com> | 2012-01-19 12:43:24 -0600 |
commit | 64b95dc4c4f471ebb5677258cf6a7dcebf3f0975 (patch) | |
tree | 2765cc3173174412f3542a02e58ad19d415f2a49 | |
parent | 69e295470c67f791e3c197770205da6040ca7951 (diff) | |
download | runit-services-64b95dc4c4f471ebb5677258cf6a7dcebf3f0975.zip runit-services-64b95dc4c4f471ebb5677258cf6a7dcebf3f0975.tar.gz runit-services-64b95dc4c4f471ebb5677258cf6a7dcebf3f0975.tar.bz2 |
Add redis support.
-rwxr-xr-x | etc/sv/redis/finish | 8 | ||||
l--------- | etc/sv/redis/log/run | 1 | ||||
-rwxr-xr-x | etc/sv/redis/run | 7 |
3 files changed, 16 insertions, 0 deletions
diff --git a/etc/sv/redis/finish b/etc/sv/redis/finish new file mode 100755 index 0000000..869cd67 --- /dev/null +++ b/etc/sv/redis/finish @@ -0,0 +1,8 @@ +#!/bin/sh -e + +EXEC=/usr/bin/redis-server +WORKDIR=/var/lib/redis +CONF="/etc/redis.conf" + +sed -ie 's/^daemonize no/daemonize yes/' $CONF +exit 0 diff --git a/etc/sv/redis/log/run b/etc/sv/redis/log/run new file mode 120000 index 0000000..914853d --- /dev/null +++ b/etc/sv/redis/log/run @@ -0,0 +1 @@ +/usr/bin/rsvlog
\ No newline at end of file diff --git a/etc/sv/redis/run b/etc/sv/redis/run new file mode 100755 index 0000000..50ddaa7 --- /dev/null +++ b/etc/sv/redis/run @@ -0,0 +1,7 @@ +#!/bin/sh -e +EXEC=/usr/bin/redis-server +WORKDIR=/var/lib/redis +CONF="/etc/redis.conf" +[ -d $WORKDIR ] || mkdir $WORKDIR +sed -ie 's/^daemonize yes/daemonize no/' $CONF +exec $EXEC 2>&1 |