mongodb: remove lock file on restart

This commit is contained in:
Jaka Hudoklin 2015-02-23 20:39:33 +01:00
parent aa91480f45
commit 1cddb5be20

View File

@ -120,6 +120,7 @@ in
};
preStart = ''
rm ${cfg.dbpath}/mongod.lock || true
if ! test -e ${cfg.dbpath}; then
install -d -m0700 -o ${cfg.user} ${cfg.dbpath}
fi