summaryrefslogtreecommitdiff
path: root/databases/mongodb/patches/patch-debian_mongod.conf
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mongodb/patches/patch-debian_mongod.conf')
-rw-r--r--databases/mongodb/patches/patch-debian_mongod.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/databases/mongodb/patches/patch-debian_mongod.conf b/databases/mongodb/patches/patch-debian_mongod.conf
new file mode 100644
index 00000000000..0c51a758db6
--- /dev/null
+++ b/databases/mongodb/patches/patch-debian_mongod.conf
@@ -0,0 +1,23 @@
+$NetBSD: patch-debian_mongod.conf,v 1.1 2015/05/02 08:10:33 ryoon Exp $
+
+Use proper paths in default config file.
+--- debian/mongod.conf.orig 2014-04-07 00:36:57.000000000 +0000
++++ debian/mongod.conf
+@@ -5,13 +5,15 @@
+ # Note: if you run mongodb as a non-root user (recommended) you may
+ # need to create and set permissions for this directory manually,
+ # e.g., if the parent directory isn't mutable by the mongodb user.
+-dbpath=/var/lib/mongodb
++dbpath=@MONGODB_DBPATH@
+
+ #where to log
+-logpath=/var/log/mongodb/mongod.log
++logpath=@MONGODB_LOGPATH@/mongod.log
+
+ logappend=true
+
++pidfilepath = @MONGODB_DBPATH@/mongod.pid
++
+ #port = 27017
+
+ # Listen to local interface only. Comment out to listen on all interfaces.