Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 2010 11:51:13 GMT
From:      Till Klampaeckel <till@php.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/149028: Bugfix in files/couchdb.in
Message-ID:  <201007281151.o6SBpDwH017180@www.freebsd.org>
Resent-Message-ID: <201007281200.o6SC0BEB025904@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         149028
>Category:       misc
>Synopsis:       Bugfix in files/couchdb.in
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 28 12:00:10 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Till Klampaeckel
>Release:        n/a
>Organization:
n/a
>Environment:
>Description:
There's a small bug in the script. This was reported to me by Nerijus (nerijus-/at/-expo-/dot/-lt) - all credit to him.

I created a patch - see attachment.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- files/couchdb.in.orig	2010-07-28 13:46:03.000000000 +0200
+++ files/couchdb.in	2010-07-28 13:47:14.000000000 +0200
@@ -35,7 +35,7 @@ pidfile="/var/run/${name}/${name}.pid"
 etcdir="%%PREFIX%%/etc/${name}"
 respawn=""
 
-if [ "$couchdb_respawn" > 0 ]
+if [ "$couchdb_respawn" -gt 0 ]
     then
         respawn="-r ${couchdb_respawn} "
 fi



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



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