Permalink
Browse files

made the default couch ini-file location configurable.

  • Loading branch information...
1 parent ac4ae41 commit 0f3f868599c41862fa475cf0761ad6c2b99dbeec @shrink0r shrink0r committed Jan 28, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/multicouch.js
View
@@ -15,6 +15,7 @@ function MultiCouch(args) {
stderr_file: args.stderr_file || prefix + "/couch.stderr",
stdout_file: args.stdout_file || prefix + "/couch.stdout",
ini_file: args.ini_file || prefix + "/couch.ini",
+ default_sys_ini: args.default_sys_ini || "/usr/local/etc/couchdb/default.ini",
pid_file: args.pid_file || prefix + "/couch.pid",
couchdb_path: args.couchdb_path || "/usr/local/bin/couchdb"
};
@@ -46,7 +47,7 @@ function MultiCouch(args) {
"-e " + options.stderr_file,
"-p " + options.pid_file,
"-n", // reset config file chain
- "-a /usr/local/etc/couchdb/default.ini", // re add system default
+ "-a " + options.default_sys_ini, // re add system default
"-a " + options.ini_file
], {
stdio: ["ignore", out, err],
@@ -72,3 +73,4 @@ function MultiCouch(args) {
util.inherits(MultiCouch, events.EventEmitter);
module.exports = MultiCouch;
+

0 comments on commit 0f3f868

Please sign in to comment.