You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2017/07/13 17:05:37 UTC

[couchdb] branch master updated: Change recommended install path to /opt/couchdb

This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 677e748  Change recommended install path to /opt/couchdb
677e748 is described below

commit 677e7488dd02ee80d8fbc90fd602fc51805d6d05
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Thu Jul 13 02:24:36 2017 -0400

    Change recommended install path to /opt/couchdb
    
    Also includes pointers to couchdb-pkg daemon scripts.
---
 INSTALL.Unix.md | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

diff --git a/INSTALL.Unix.md b/INSTALL.Unix.md
index 768fbbb..3fcdc17 100644
--- a/INSTALL.Unix.md
+++ b/INSTALL.Unix.md
@@ -148,6 +148,7 @@ You should create a special `couchdb` user for CouchDB.
 On many Unix-like systems you can run:
 
     adduser --system \
+            --home /opt/couchdb \
             --no-create-home \
             --shell /bin/bash \
             --group --gecos \
@@ -159,13 +160,7 @@ site to find the documentation appropriate for your system. As of recent
 versions of OS X, this functionality is also included in Server.app,
 available through the App Store only as part of OS X Server.
 
-You must make sure that:
-
-    * The user has a working POSIX shell
-
-    * The user's home directory is wherever you have copied the release.
-      As a recommendation, copy the `rel\couchdb` directory into
-      `/home/couchdb` or `/Users/couchdb`.
+You must make sure that the user has a working POSIX shell.
 
 You can test this by:
 
@@ -175,19 +170,19 @@ You can test this by:
 
 Copy the built couchdb release to the new user's home directory:
 
-    cp -R /path/to/couchdb/rel/couchdb /home/couchdb
+    cp -R /path/to/couchdb/rel/couchdb /opt/couchdb
 
 Change the ownership of the CouchDB directories by running:
 
-    chown -R couchdb:couchdb /home/couchdb/couchdb 
+    chown -R couchdb:couchdb /opt/couchdb
 
 Change the permission of the CouchDB directories by running:
 
-    find /home/couchdb/couchdb -type d -exec chmod 0770 {} \;
+    find /opt/couchdb -type d -exec chmod 0770 {} \;
 
 Update the permissions for your ini files:
 
-    chmod 0644 /home/couchdb/couchdb/etc/*
+    chmod 0644 /opt/couchdb/etc/*
 
 ## First Run
 
@@ -215,8 +210,6 @@ From here you should verify your installation by pointing your web browser to:
 
 ## Running as a Daemon
 
-CouchDB no longer ships with any daemonization scripts.
-
 The couchdb team recommends [runit](http://smarden.org/runit/) to
 run CouchDB persistently and reliably. Configuration of runit is
 straightforward; if you have questions, reach out to the CouchDB
@@ -224,5 +217,11 @@ user mailing list.
 
 Naturally, you can configure systemd, launchd or SysV-init daemons to
 launch CouchDB and keep it running using standard configuration files.
+Sample scripts are in the couchdb-pkg repository:
+
+* SysV-init (Debian-style): https://github.com/apache/couchdb-pkg/blob/master/debian/couchdb.init
+* SysV-init (RHEL-style): https://github.com/apache/couchdb-pkg/blob/master/rpm/SOURCES/couchdb.init
+* upstart: Use the Debian-style sysvinit script instead.
+* systemd: https://github.com/apache/couchdb-pkg/blob/master/debian/couchdb.service
 
 Consult your system documentation for more information.

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].