aboutsummaryrefslogtreecommitdiff
path: root/databases/mongodb/files/mongod.in
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2013-04-19 10:59:20 +0000
committerAlex Dupre <ale@FreeBSD.org>2013-04-19 10:59:20 +0000
commit3dcf2a9638bc219bda743e19a43d86ec8c42340c (patch)
treef4b3bffa032ae5f96a3331a75062e2a8b613e0bc /databases/mongodb/files/mongod.in
parent9975cd5812a80df68ffe6311fa62266723da9d25 (diff)
downloadports-3dcf2a9638bc219bda743e19a43d86ec8c42340c.tar.gz
ports-3dcf2a9638bc219bda743e19a43d86ec8c42340c.zip
Update to 2.4.2 release.
Simplify rc script. Fix build with spidermonkey [1]. PR: ports/177703 [1] Submitted by: Dmitry Sukhodoyev <raven428@gmail.com> Feature safe: yes
Notes
Notes: svn path=/head/; revision=316093
Diffstat (limited to 'databases/mongodb/files/mongod.in')
-rw-r--r--databases/mongodb/files/mongod.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/databases/mongodb/files/mongod.in b/databases/mongodb/files/mongod.in
index a06b88ff5226..bdf24bea76e0 100644
--- a/databases/mongodb/files/mongod.in
+++ b/databases/mongodb/files/mongod.in
@@ -14,8 +14,6 @@
# just before mongod starts.
# mongod_dbpath (str): Default to "/var/db/mongodb"
# Base database directory.
-# mongod_pidfile (str): Custum PID file path and name.
-# Default to "${mongod_dbpath}/mongod.pid".
# mongod_flags (str): Custom additional arguments to be passed to mongod.
# Default to "--logpath ${mongod_dbpath}/mongod.log --logappend".
#
@@ -34,9 +32,9 @@ load_rc_config $name
: ${mongod_user="mongodb"}
: ${mongod_group="mongodb"}
-pidfile=${mongod_pidfile:-"${mongod_dbpath}/mongod.pid"}
+pidfile="${mongod_dbpath}/mongod.lock"
command=%%PREFIX%%/bin/${name}
-command_args="--config %%PREFIX%%/etc/mongodb.conf --dbpath $mongod_dbpath --pidfilepath ${pidfile} --fork"
+command_args="--config %%PREFIX%%/etc/mongodb.conf --dbpath $mongod_dbpath --fork >/dev/null 2>/dev/null"
start_precmd="${name}_prestart"
mongod_create_dbpath()