| Summary: | dev-libs/mongodb-2.6.8: checkpath: mkdir: No such file or directory | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Austin English (RETIRED) <wizardedit> |
| Component: | [OLD] Development | Assignee: | Ultrabug <ultrabug> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | julien |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
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. |
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