I don't think we should try to deal with this manually; its quite possible that there may be other processes named mongodb running on the system (or in LXC containers) so the check proposed is not 100% reliable.
MongoDB is trying to tell you that something bad happened - this should always be investigated manually. ** Changed in: mongodb (Ubuntu) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1251654 Title: Remove /var/lib/mongodb/mongodb.lock trying to start mongodb service To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mongodb/+bug/1251654/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs