Skip to content

Point erl to sys.config file#426

Merged
asfgit merged 1 commit intoapache:masterfrom
cloudant:2384-specify_config_file_in_args
Jun 27, 2016
Merged

Point erl to sys.config file#426
asfgit merged 1 commit intoapache:masterfrom
cloudant:2384-specify_config_file_in_args

Conversation

@iilyak
Copy link
Contributor

@iilyak iilyak commented Jun 24, 2016

Add -config path/to/sys.config argument to erlexec.

COUCHDB-2384

@kxepal
Copy link
Member

kxepal commented Jun 24, 2016

+1

@kxepal
Copy link
Member

kxepal commented Jun 24, 2016

But...how does it works now without these changes?

@iilyak
Copy link
Contributor Author

iilyak commented Jun 24, 2016

if config file is not specified lager app environment would be empty. In this case lager would use default handlers from here. Therefore amending the etc/sys.config wouldn't have any effect. That is what Jan observed in the case COUCHDB-2384.
sys.config is used only if either of two are satisfied:

  • erlang is started with -mode embedded
  • -config <file> option is specified

Add -config path/to/sys.config argument to erlexec.

COUCHDB-2384
@iilyak iilyak force-pushed the 2384-specify_config_file_in_args branch from 9836e9d to 9be42f6 Compare June 27, 2016 16:26
@asfgit asfgit merged commit 9be42f6 into apache:master Jun 27, 2016
asfgit pushed a commit that referenced this pull request Jun 27, 2016
This closes #426

Signed-off-by: ILYA Khlopotov <iilyak@ca.ibm.com>
nickva pushed a commit to nickva/couchdb that referenced this pull request Sep 7, 2022
* Clarify what compaction does

* Updates from review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants