summaryrefslogtreecommitdiff
path: root/databases/redis/files/redis.in
diff options
context:
space:
mode:
Diffstat (limited to 'databases/redis/files/redis.in')
-rw-r--r--databases/redis/files/redis.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/databases/redis/files/redis.in b/databases/redis/files/redis.in
index a7a8b540821a..386639f2c890 100644
--- a/databases/redis/files/redis.in
+++ b/databases/redis/files/redis.in
@@ -16,20 +16,19 @@
. /etc/rc.subr
name="redis"
-rcvar=redis_enable
+rcvar="${name}_enable"
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%%"}
-: ${redis_config="%%PREFIX%%/etc/$name.conf"}
-
-command_args="${redis_config}"
-required_files="${redis_config}"
run_rc_command "$1"