mongodb: remove lock file on restart
This commit is contained in:
parent
aa91480f45
commit
1cddb5be20
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user