ports/databases/redis-scripting/files/redis.sh.in
Sergey A. Osokin 80f1925c91 Add redis-scripting, version 2.2.111, an experimental version of
Redis 2.2.11 with support for Lua scripting, backported from the
scripting branch.  Instructions about how to use it are contained
in following blog post:
http://antirez.com/post/scripting-branch-released.html

Connect to build.

Add CONFLICTS and bump PORTREVISION for databases/redis.
2011-07-22 10:32:41 +00:00

34 lines
579 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: redis
# REQUIRE: LOGIN
# BEFORE: securelevel
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable `redis':
#
#redis_enable="YES"
#
. /etc/rc.subr
name="redis"
rcvar=`set_rcvar`
extra_commands="reload"
command="%%PREFIX%%/bin/redis-server"
config_file="%%PREFIX%%/etc/$name.conf"
command_args="${config_file}"
pidfile="%%REDIS_RUNDIR%%/$name.pid"
required_files="${config_file}"
# read configuration and set defaults
load_rc_config "$name"
: ${redis_enable="NO"}
: ${redis_user="%%REDIS_USER%%"}
run_rc_command "$1"