Permalink
Browse files

post

  • Loading branch information...
1 parent 1dc85e8 commit 6693fa88826cd4b60d16b3f7b5d5231a3bbf5768 David Radcliffe committed Jan 23, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 _posts/2012-01-23-mongodb-pid-file.md
@@ -0,0 +1,17 @@
+---
+layout: post
+title: Finding the pid file for mongodb
+---
+
+For a while now I've been trying to monitor my mongodb instance with monit and obviously needed the pid file location. I read through my init script and looked in the places the script said the pid file was supposed to be, but it just wasn't there.
+
+Finally I found that it's stored in the data directory.
+
+ /data/mongodb/mongod.lock
+
+Adding a simple file link will fix this up nicely for me:
+
+ ln -s /data/mongodb/mongod.lock /var/run/mongodb.pid
+
+
+I hope this helps someone else!

0 comments on commit 6693fa8

Please sign in to comment.