From 5007fcb1a61ac252929c44bb7ea1556eeb6114d6 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 13 Oct 2014 11:27:38 +0200 Subject: [PATCH] redis: add service scripts for runit. --- srcpkgs/redis/files/redis/run | 2 ++ srcpkgs/redis/files/redis/supervise | 1 + srcpkgs/redis/template | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 srcpkgs/redis/files/redis/run create mode 120000 srcpkgs/redis/files/redis/supervise diff --git a/srcpkgs/redis/files/redis/run b/srcpkgs/redis/files/redis/run new file mode 100755 index 00000000000..894f6fa3728 --- /dev/null +++ b/srcpkgs/redis/files/redis/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec redis-server /etc/redis/redis.conf diff --git a/srcpkgs/redis/files/redis/supervise b/srcpkgs/redis/files/redis/supervise new file mode 120000 index 00000000000..18a1e5ecd37 --- /dev/null +++ b/srcpkgs/redis/files/redis/supervise @@ -0,0 +1 @@ +/run/runit/supervise.redis \ No newline at end of file diff --git a/srcpkgs/redis/template b/srcpkgs/redis/template index b438b1f8849..3f63ada7078 100644 --- a/srcpkgs/redis/template +++ b/srcpkgs/redis/template @@ -1,7 +1,7 @@ # Template file for 'redis' pkgname=redis version=2.8.17 -revision=2 +revision=3 makedepends="jemalloc-devel" homepage="http://redis.io" distfiles="http://download.redis.io/releases/${pkgname}-${version}.tar.gz" @@ -39,4 +39,6 @@ do_install() { if [ "$build_option_systemd" ]; then vinstall "${FILESDIR}/redis.service" 644 "usr/lib/systemd/system" fi + + vsv redis }