Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Conversation

@kimrhh
Copy link
Contributor

@kimrhh kimrhh commented Aug 9, 2016

No description provided.

mnhu added 5 commits August 9, 2016 09:42
the trailing dash was a leftover from the development process.
Add init script to mongodb recipe. The script runs mongod --repair if
lock file is present, and, if case recover fails, wipes the database!

The default data base path (/data/db) can be changed by setting
USE_mongodb_db_path.
When using a non-default path for the mongo database files (e.g. /db),
the check for existing lock file looked at the wrong path (/data/db).
This caused the initscript to fail starting after unclean shutdowns.

Fix this by avoid expansion of $MONGOD_DB_PATH when assigning the value
for $MONGOD_LOCK_FILE, and use the former explicitly when checking the
lock file.
Since the startup logging in mongodb might fail due to the unique id
being composed of system host and milliseconds since epoch (which might
always be reset due to missing rtc), the logging is patched out.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants