Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2012 06:10:18 +0000 (UTC)
From:      "Sergey A. Osokin" <osa@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r301062 - in head/databases/redis: . files
Message-ID:  <201207180610.q6I6AIbs035110@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: osa
Date: Wed Jul 18 06:10:17 2012
New Revision: 301062
URL: http://svn.freebsd.org/changeset/ports/301062

Log:
  Rename rc script template to more canonical name.

Added:
  head/databases/redis/files/redis.in
     - copied unchanged from r301055, head/databases/redis/files/redis.sh.in
Deleted:
  head/databases/redis/files/redis.sh.in
Modified:
  head/databases/redis/Makefile

Modified: head/databases/redis/Makefile
==============================================================================
--- head/databases/redis/Makefile	Wed Jul 18 05:27:03 2012	(r301061)
+++ head/databases/redis/Makefile	Wed Jul 18 06:10:17 2012	(r301062)
@@ -21,7 +21,7 @@ CONFLICTS?=	redis-scripting-2.*
 
 USE_GMAKE=	yes
 MAKE_ENV=	"V=yo"
-USE_RC_SUBR=	redis.sh
+USE_RC_SUBR=	redis
 BIN_FILES=	redis-benchmark redis-check-aof redis-check-dump \
 		redis-cli redis-server
 

Copied: head/databases/redis/files/redis.in (from r301055, head/databases/redis/files/redis.sh.in)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/redis/files/redis.in	Wed Jul 18 06:10:17 2012	(r301062, copy of r301055, head/databases/redis/files/redis.sh.in)
@@ -0,0 +1,34 @@
+#!/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=redis_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%%"}
+
+run_rc_command "$1"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207180610.q6I6AIbs035110>