[MacPorts] #45803: mongodb @2.6.5_1: Run mongod instance with config file
MacPorts
noreply at macports.org
Thu Dec 18 13:08:37 PST 2014
#45803: mongodb @2.6.5_1: Run mongod instance with config file
--------------------------+--------------------------
Reporter: mark@… | Owner: ryandesign@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: mongodb |
--------------------------+--------------------------
Comment (by mark@…):
Perhaps the port file could be changed to something like:
{{{
startupitem.executable sudo -u ${mongouser} ${prefix}/bin/mongod --config
${prefix}/etc/mongodb/mongodb.conf
post-activate {
if {![file exists ${prefix}/etc/mongodb/mongod.conf]} {
file copy ${prefix}/etc/mongodb/mongod.conf.sample \
${prefix}/etc/mongodb/mongod.conf
}
}
}}}
The above attached file replicates the existing startup item (with SSL
added). Moving to config file would make it quite a bit easier for those
of us who need to add [http://docs.mongodb.org/manual/reference
/configuration-options/ other startup options].
--
Ticket URL: <https://trac.macports.org/ticket/45803#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list