redis: add service scripts for runit.
This commit is contained in:
parent
d7ab26cd26
commit
5007fcb1a6
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec redis-server /etc/redis/redis.conf
|
|
@ -0,0 +1 @@
|
||||||
|
/run/runit/supervise.redis
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'redis'
|
# Template file for 'redis'
|
||||||
pkgname=redis
|
pkgname=redis
|
||||||
version=2.8.17
|
version=2.8.17
|
||||||
revision=2
|
revision=3
|
||||||
makedepends="jemalloc-devel"
|
makedepends="jemalloc-devel"
|
||||||
homepage="http://redis.io"
|
homepage="http://redis.io"
|
||||||
distfiles="http://download.redis.io/releases/${pkgname}-${version}.tar.gz"
|
distfiles="http://download.redis.io/releases/${pkgname}-${version}.tar.gz"
|
||||||
|
@ -39,4 +39,6 @@ do_install() {
|
||||||
if [ "$build_option_systemd" ]; then
|
if [ "$build_option_systemd" ]; then
|
||||||
vinstall "${FILESDIR}/redis.service" 644 "usr/lib/systemd/system"
|
vinstall "${FILESDIR}/redis.service" 644 "usr/lib/systemd/system"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
vsv redis
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue