[
https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752856#action_12752856
]
Adam Kocoloski commented on COUCHDB-498:
----------------------------------------
Hi Eric, I just double-checked. In the SVN 0.10.x branch, the -n option works
correctly interactively and fails to reset the chain in batch mode. If I
change line 141 of bin/couchdb to
background_start_arguments="-n"
-n works in background mode, too. I stuck "this_is_default", "this_is_local",
and "this_is_foo" configuration blocks in the 3 files to be sure. I only
tested it on OS X 10.6.
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
> Attachments: background_start_config_reset.patch
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a
> /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p
> /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o
> /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e
> /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> e...@thelog:~$ startarguments: \"/etc/couchdb/default.ini\",
> \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\",
> \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset
> the .ini chain.
> This came to light when I noticed that any admin users I added in my system
> CouchDB also affected any other CouchDB I ran on the same machine. Which
> seems logical if my analysis of the bug is correct, since the admin users
> would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.