ports/158985: [patch] cleanup rc script for databases/memcached

Steven Wills swills at FreeBSD.org
Sun Jul 17 01:30:10 UTC 2011


>Number:         158985
>Category:       ports
>Synopsis:       [patch] cleanup rc script for databases/memcached
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 17 01:30:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Steven Wills
>Release:        
>Organization:
>Environment:
>Description:
Please see attached patch which makes some cleanups in the rc script for databases/memcached
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: databases/memcached/files/memcached.in
===================================================================
RCS file: /home/ncvs/ports/databases/memcached/files/memcached.in,v
retrieving revision 1.5
diff -u -r1.5 memcached.in
--- databases/memcached/files/memcached.in	1 Jul 2011 22:33:09 -0000	1.5
+++ databases/memcached/files/memcached.in	5 Jul 2011 03:23:06 -0000
@@ -4,6 +4,7 @@
 #
 # PROVIDE: memcached
 # REQUIRE: DAEMON
+# KEYWORD: shutdown
 #
 # Add the following lines to /etc/rc.conf to run memcached:
 #
@@ -41,10 +42,10 @@
 		for profile in ${memcached_profiles}; do
 			eval _enable="\${memcached_${profile}_enable}"
 			case "x${_enable:-${memcached_enable}}" in
-			x|x[Nn][Oo]|x[Nn][Oo][Nn][Ee])
+			x[Nn][Oo]|x[Ff][Aa][Ll][Ss][Ee]|x[Oo][Ff][Ff]|x0)
 				continue
 				;;
-			x[Yy][Ee][Ss])
+			x[Yy][Ee][Ss]|x[Tt][Rr][Uu][Ee]|x[Oo][Nn]|x1)
 				;;
 			*)
 				if test -z "$_enable"; then
@@ -78,6 +79,4 @@
 command=%%PREFIX%%/bin/memcached
 command_args="-d -u ${memcached_user} -P ${pidfile} "
 
-unset memcached_user
-
 run_rc_command "$1"


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list