Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Dec 2016 14:56:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 211307] databases/mongodb32 can't start due to missing /var/run/mongodb
Message-ID:  <bug-211307-13-gUV551c8vz@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-211307-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-211307-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211307

SolarCatcher <solarcatcher@gmx.de> changed:

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

--- Comment #1 from SolarCatcher <solarcatcher@gmx.de> ---
This problem still exists in 3.2.11. I just recompiled mongodb32 2 more tim=
es
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 st=
art
script /usr/local/etc/rc.d/mongod overwrites several of the settings from t=
he
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 scri=
pt
currently works, this is not possible.

Furthermore, the start script uses the lock file /var/db/mongodb/mongod.loc=
k as
additional pid file, which seems to be discouraged, see
https://jira.mongodb.org/browse/SERVER-4523?focusedCommentId=3D88554&page=
=3Dcom.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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211307-13-gUV551c8vz>