mongodb-2.6.8's conf.d file does not define MONGODB_RUN, causing an error when attempting to start the service: austin1 ads # /etc/init.d/mongodb restart * Stopping mongodb ... * start-stop-daemon: no matching processes found [ ok ] * : creating directory * checkpath: mkdir: No such file or directory * Starting mongodb ... adding: MONGODB_RUN=/var/run/mongodb to /etc/conf.d/monogdb avoids the issue. This occurs because the initd uses $MONGODB_RUN before it is initialized (at the top of start() ): start() { checkpath -d -m 0750 -o "${MONGODB_USER}":mongodb "${MONGODB_RUN}" ... later ... start-stop-daemon --background --start --make-pidfile \ ... --unixSocketPrefix ${MONGODB_RUN:-/var/run/mongodb} \ Reproducible: Always
MONGODB_USER should also be set, otherwise the directory is owned root:mongodb and mongodb still fails to start.
This was in an issue with a local overlay I had missed, apologies.