Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340032 - dev-db/mongodb: add server logging
Summary: dev-db/mongodb: add server logging
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lance Albertson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 337973
Blocks:
  Show dependency tree
 
Reported: 2010-10-07 08:06 UTC by Johan Bergström
Modified: 2011-04-13 15:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Bergström 2010-10-07 08:06:28 UTC
Looks like the server output goes to nowhere, here's a diff against the ebuild in bug 337973. It will work nicely with suggested permissions change in bug 338039 as long as directory ownership is "fixed". 


# diff -u files/mongodb.initd /etc/init.d/mongodb 
--- files/mongodb.initd	2010-05-21 09:05:33.000000000 +0200
+++ /etc/init.d/mongodb	2010-10-07 09:47:53.000000000 +0200
@@ -34,7 +34,7 @@
 
 	start-stop-daemon --background --start --user ${MONGODB_USER} --pidfile \
 		"${MONGODB_PID_FILE}" --make-pidfile --exec ${MONGODB_EXEC} \
-		 -- ${args} run
+		 -- --logappend --logpath /var/log/mongodb/server.log ${args} run
 	eend $?
 }
Comment 1 Ultrabug gentoo-dev 2011-04-13 15:18:57 UTC
Hi Johan ;)

I guess you know we fixed this together, closing bug. Big thanks again mate !

+*mongodb-1.8.1 (13 Apr 2011)
+*mongodb-1.6.5 (13 Apr 2011)
+
+  13 Apr 2011; Ultrabug <ultrabug@gentoo.org> -mongodb-1.2.4.ebuild,
+  -files/mongodb-1.2-modify-post-strip.patch,
+  -files/mongodb-1.2-modify-testing.patch, -mongodb-1.4.4.ebuild,
+  -files/mongodb-1.4-modify-post-strip.patch,
+  -files/mongodb-1.4-modify-testing.patch, -mongodb-1.5.5.ebuild,
+  -mongodb-1.6.0.ebuild, -files/mongodb-1.6.0-fix-scons.patch,
+  +mongodb-1.6.5.ebuild, +files/mongodb-1.6-fix-scons.patch,
+  +mongodb-1.8.1.ebuild, +files/mongodb-1.8-fix-scons.patch,
+  +files/mongos.confd, +files/mongos.initd, files/mongodb.confd,
+  files/mongodb.initd:
+  Mongodb rework/bump. Fix bugs #329167, #334081, #337085, #337593, #337973,
+  #338039, #340032, #356731. Many thanks to Johan Bergström for his help and
+  testing. Drop old versions.
+