From owner-freebsd-ports-bugs@freebsd.org Tue Dec 20 14:56:55 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C56B2C88C74 for ; Tue, 20 Dec 2016 14:56:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9A933B3E for ; Tue, 20 Dec 2016 14:56:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uBKEutSa005372 for ; Tue, 20 Dec 2016 14:56:55 GMT (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Tue, 20 Dec 2016 14:56:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: solarcatcher@gmx.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 14:56:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211307 SolarCatcher changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |solarcatcher@gmx.de --- Comment #1 from SolarCatcher --- 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.=