View | Details | Raw Unified | Return to bug 204025
Collapse All | Expand All

(-)b/databases/redis/Makefile (-1 / +2 lines)
Lines 2-7 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	redis
4
PORTNAME=	redis
5
PORTREVISION=	1
5
DISTVERSION=	3.0.5
6
DISTVERSION=	3.0.5
6
CATEGORIES=	databases
7
CATEGORIES=	databases
7
MASTER_SITES=	http://download.redis.io/releases/
8
MASTER_SITES=	http://download.redis.io/releases/
Lines 56-62 CONFLICTS?= redis-devel-3.* Link Here
56
57
57
USES+=		gmake
58
USES+=		gmake
58
MAKE_ENV=	"V=yo"
59
MAKE_ENV=	"V=yo"
59
USE_RC_SUBR=	redis
60
USE_RC_SUBR=	redis sentinel
60
BIN_FILES=	redis-benchmark redis-check-aof redis-check-dump \
61
BIN_FILES=	redis-benchmark redis-check-aof redis-check-dump \
61
		redis-cli redis-sentinel redis-server
62
		redis-cli redis-sentinel redis-server
62
63
(-)b/databases/redis/files/sentinel.in (+39 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: sentinel
4
# REQUIRE: LOGIN
5
# BEFORE:  securelevel
6
# KEYWORD: shutdown
7
8
# Add the following line to /etc/rc.conf to enable `sentinel':
9
#
10
#sentinel_enable="YES"
11
#
12
13
. /etc/rc.subr
14
15
name="sentinel"
16
rcvar="${name}_enable"
17
18
command="/usr/local/bin/redis-sentinel"
19
pidfile="/var/run/redis/$name.pid"
20
21
# read configuration and set defaults
22
load_rc_config "$name"
23
: ${sentinel_enable="NO"}
24
: ${sentinel_user="redis"}
25
: ${sentinel_config="/usr/local/etc/$name.conf"}
26
27
command_args="${sentinel_config} --daemonize yes --pidfile ${pidfile}"
28
required_files="${sentinel_config}"
29
start_precmd="${name}_checks"
30
restart_precmd="${name}_checks"
31
32
sentinel_checks()
33
{
34
    if [ x`id -u ${sentinel_user}` != x`stat -f %u ${sentinel_config}` ]; then
35
	err 1 "${sentinel_config} must be owned by user ${sentinel_user}"
36
    fi
37
}
38
39
run_rc_command "$1"

Return to bug 204025