aboutsummaryrefslogtreecommitdiff
path: root/databases/mongodb/files
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2013-02-21 15:47:25 +0000
committerWesley Shields <wxs@FreeBSD.org>2013-02-21 15:47:25 +0000
commited906601e4b1707bb144088d20128e9c2ba113d9 (patch)
treecf495bda9138198ebf4365dc1ebad5dda590e2cf /databases/mongodb/files
parent11218355c176e5d5712a822b0015e4f13225e7fb (diff)
downloadports-ed906601e4b1707bb144088d20128e9c2ba113d9.tar.gz
ports-ed906601e4b1707bb144088d20128e9c2ba113d9.zip
Notes
Diffstat (limited to 'databases/mongodb/files')
-rw-r--r--databases/mongodb/files/mongod.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/mongodb/files/mongod.in b/databases/mongodb/files/mongod.in
index c0e8efbf520a..272ecbea3ca7 100644
--- a/databases/mongodb/files/mongod.in
+++ b/databases/mongodb/files/mongod.in
@@ -32,6 +32,17 @@ load_rc_config $name
: ${mongod_dbpath="/var/db/mongodb"}
: ${mongod_user="mongodb"}
+# Note: if you use a config file for mongodb,
+# the parameters passed on cl override the config file
+# ie, dbpath, logappend, logpath etc in the command_args below.
+# This means that your config file will be ignored unless
+# you comment out remove the cl parameters.
+#
+# Using config file: uncomment the following line AND comment out
+# the next line.
+
+# command_args="-f $mongod_config"
+
command_args="-f $mongod_config --dbpath $mongod_dbpath --logappend --logpath $mongod_dbpath/mongod.log --fork"
required_dirs=${mongod_dbpath}