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

new recipe: mongodb #352

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

new recipe: mongodb #352

wants to merge 5 commits into from

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