summaryrefslogtreecommitdiff
path: root/dev-db/redis/files/redis.initd-5
blob: a567b1e210d8c79d6bd612349cd1ce051b74cae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

: ${REDIS_DIR:=/var/lib/redis}
: ${REDIS_CONF:=/etc/redis.conf}
: ${REDIS_OPTS:="${REDIS_CONF}"}
: ${REDIS_USER:=redis}
: ${REDIS_GROUP:=redis}
: ${REDIS_TIMEOUT:=30}

command="/usr/sbin/redis-server"
command_args="${REDIS_OPTS}"
command_background="true"
command_user="${REDIS_USER}:${REDIS_GROUP}"
pidfile="/run/${RC_SVCNAME}.pid"
retry="${REDIS_TIMEOUT}"
start_stop_daemon_args="--chdir \"${REDIS_DIR}\""

depend() {
	use localmount logger
	after keepalived
}