Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// JujuMongodPath holds the default path to the juju-specific mongod.
JujuMongodPath = "/usr/lib/juju/bin/mongod"
)
Functions ¶
func EnsureMongoServer ¶
EnsureMongoServer ensures that the correct mongo upstart script is installed and running.
This method will remove old versions of the mongo upstart script as necessary before installing the new version.
func MongoUpstartService ¶
MongoUpstartService returns the upstart config for the mongo state service.
This method assumes there is a server.pem keyfile in dataDir.
func MongodPath ¶
MongoPath returns the executable path to be used to run mongod on this machine. If the juju-bundled version of mongo exists, it will return that path, otherwise it will return the command to run mongod from the path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.