1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update iiab-mongodb-repair-if-no-lock.j2

This commit is contained in:
A Holt 2018-07-23 09:57:45 -04:00 committed by GitHub
parent 08992f47be
commit b08e12fba3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,5 +3,5 @@
if [ ! -f {{ mongodb_db_lock_file }} ]; then
/usr/bin/mongod --repair --dbpath {{ mongodb_db_path }}
else
echo '"mongod --repair" cannot run when {{ mongodb_db_lock_file }} present.'
echo '"mongod --repair" cannot run when {{ mongodb_db_lock_file }} present.' >&2 # Output to STDERR but keep going, so /etc/systems/system/mongodb.service continues
fi