[Pkg-erlang-commits] r1103 - in couchdb/trunk/debian: . patches

sgolovan at alioth.debian.org sgolovan at alioth.debian.org
Tue Oct 6 06:29:40 UTC 2009


Author: sgolovan
Date: 2009-10-06 06:29:39 +0000 (Tue, 06 Oct 2009)
New Revision: 1103

Added:
   couchdb/trunk/debian/patches/init.patch
Modified:
   couchdb/trunk/debian/changelog
Log:
[couchdb]
  * It's normal if /etc/init.d script is left after package removal as a
    config file (and the binary isn't available). Therefore made it return
    success in case if /usr/bin/couchdb doesn't exist or isn't an executable.
  * Change current directory to /var/run/couchdb in init script to prevent
    error messages about access violation by code server if the current dir
    isn't readable by the couchdb user.


Modified: couchdb/trunk/debian/changelog
===================================================================
--- couchdb/trunk/debian/changelog	2009-10-05 16:51:23 UTC (rev 1102)
+++ couchdb/trunk/debian/changelog	2009-10-06 06:29:39 UTC (rev 1103)
@@ -7,11 +7,17 @@
     to calculate dependencies automatically. This removes erlang-nox from
     dependencies (closes: #532756).
   * Bumped standards version to 3.8.3.
+  * It's normal if /etc/init.d script is left after package removal as a
+    config file (and the binary isn't available). Therefore made it return
+    success in case if /usr/bin/couchdb doesn't exist or isn't an executable.
+  * Change current directory to /var/run/couchdb in init script to prevent
+    error messages about access violation by code server if the current dir
+    isn't readable by the couchdb user.
 
   [ Noah Slater ]
   * Updated debian/control, updated Build-Depends on debhelper to 7.2.11.
 
- -- Sergei Golovan <sgolovan at debian.org>  Mon, 05 Oct 2009 20:34:48 +0400
+ -- Sergei Golovan <sgolovan at debian.org>  Tue, 06 Oct 2009 09:47:10 +0400
 
 couchdb (0.9.0-2) unstable; urgency=low
 

Added: couchdb/trunk/debian/patches/init.patch
===================================================================
--- couchdb/trunk/debian/patches/init.patch	                        (rev 0)
+++ couchdb/trunk/debian/patches/init.patch	2009-10-06 06:29:39 UTC (rev 1103)
@@ -0,0 +1,19 @@
+--- apache-couchdb-0.9.1/etc/init/couchdb.tpl.in
++++ apache-couchdb-0.9.1.new/etc/init/couchdb.tpl.in
+@@ -34,7 +34,7 @@
+ LSB_LIBRARY=/lib/lsb/init-functions
+ 
+ if test ! -x $COUCHDB; then
+-    exit $SCRIPT_ERROR
++    exit $SCRIPT_OK
+ fi
+ 
+ if test -r $CONFIGURATION_FILE; then
+@@ -77,6 +77,7 @@
+         command="$command $COUCHDB_OPTIONS"
+     fi
+     mkdir -p "$RUN_DIR"
++    cd "$RUN_DIR"
+     if test -n "$COUCHDB_USER"; then
+         chown $COUCHDB_USER "$RUN_DIR"
+         if su $COUCHDB_USER -c "$command" > /dev/null; then




More information about the Pkg-erlang-commits mailing list