From 2ea2a480e071ea5316e2a7622c2b7ac1c40f1088 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Sun, 30 Jun 2013 00:11:02 +0300 Subject: [PATCH] mongodb: Logging fixes --- mongodb/files/mongodb.conf | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/mongodb/files/mongodb.conf b/mongodb/files/mongodb.conf index 060ce63..e9dee18 100644 --- a/mongodb/files/mongodb.conf +++ b/mongodb/files/mongodb.conf @@ -1,21 +1,19 @@ # mongodb.conf -#where to log +dbpath=/srv/mongodb +pidfilepath=/var/run/mongodb/mongodb.pid + +# where to log logpath=/var/log/mongodb/mongodb.log +logappend = true # fork and run in background fork = true +# bind to localhost bind_ip = 127.0.0.1 port = 27017 -dbpath=/srv/mongodb - -pidfilepath=/var/run/mongodb/mongodb.pid - -# Enables periodic logging of CPU utilization and I/O wait -cpu = true - # Turn on/off security. Off is currently the default auth = true