couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Bronson (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-250) init script missing check for $COUCHDB_PID_FILE
Date Fri, 13 Feb 2009 09:35:59 GMT
init script missing check for $COUCHDB_PID_FILE
-----------------------------------------------

                 Key: COUCHDB-250
                 URL: https://issues.apache.org/jira/browse/COUCHDB-250
             Project: CouchDB
          Issue Type: Bug
          Components: Build System
    Affects Versions: 0.9
         Environment: gentoo
            Reporter: Joshua Bronson
            Priority: Minor


the following patch fixes this:

Index: etc/init/couchdb.tpl.in
===================================================================
--- etc/init/couchdb.tpl.in	(revision 744021)
+++ etc/init/couchdb.tpl.in	(working copy)
@@ -63,6 +63,9 @@
     # Start Apache CouchDB as a background process.
 
     command="$COUCHDB -b"
+    if test -n "$COUCHDB_PID_FILE"; then
+        command="$command -p $COUCHDB_PID_FILE"
+    fi
     if test -n "$COUCHDB_STDOUT_FILE"; then
         command="$command -o $COUCHDB_STDOUT_FILE"
     fi



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message