[Bug 211307] databases/mongodb32 can't start due to missing /var/run/mongodb

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Dec 20 14:56:55 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211307

SolarCatcher <solarcatcher at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |solarcatcher at gmx.de

--- Comment #1 from SolarCatcher <solarcatcher at gmx.de> ---
This problem still exists in 3.2.11. I just recompiled mongodb32 2 more times
because I did not notice the problem was related to the missing directory (in a
new jail).

While this alone would be easy to fix, the problem lies much deeper: The start
script /usr/local/etc/rc.d/mongod overwrites several of the settings from the
configuration file in /usr/local/etc/mongodb.conf. Thus one cannot use the
config file to e.g. specify the location of the log or the pid file.

Ideally, the start script checks for the existence of the paths defined in the
configuration file and creates them where necessary. The way the start script
currently works, this is not possible.

Furthermore, the start script uses the lock file /var/db/mongodb/mongod.lock as
additional pid file, which seems to be discouraged, see
https://jira.mongodb.org/browse/SERVER-4523?focusedCommentId=88554&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-88554

I have very little programming experience. But I would be happy to help with
cleaning up this port, as we use mongodb32 in production.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list