redis: add service scripts for runit.

This commit is contained in:
Enno Boland 2014-10-13 11:27:38 +02:00
parent d7ab26cd26
commit 5007fcb1a6
3 changed files with 6 additions and 1 deletions

2
srcpkgs/redis/files/redis/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec redis-server /etc/redis/redis.conf

View file

@ -0,0 +1 @@
/run/runit/supervise.redis

View file

@ -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
}