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

: ${REDIS_SENTINEL_DIR:=/tmp}
: ${REDIS_SENTINEL_CONF:=/etc/redis/sentinel.conf}
: ${REDIS_SENTINEL_USER:=redis}
: ${REDIS_SENTINEL_GROUP:=redis}
: ${REDIS_SENTINEL_TIMEOUT:=30}

command="/usr/sbin/redis-sentinel"
command_args="${REDIS_SENTINEL_CONF}"
command_background="true"
command_user="${REDIS_SENTINEL_USER}:${REDIS_SENTINEL_GROUP}"
pidfile="/run/${RC_SVCNAME}.pid"
retry="${REDIS_SENTINEL_TIMEOUT}"
start_stop_daemon_args="--chdir \"${REDIS_SENTINEL_DIR}\""

depend() {
	use localmount logger
	after keepalived redis
}