mongodb: remove lock file on restart
This commit is contained in:
parent
aa91480f45
commit
1cddb5be20
@ -120,6 +120,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
preStart = ''
|
preStart = ''
|
||||||
|
rm ${cfg.dbpath}/mongod.lock || true
|
||||||
if ! test -e ${cfg.dbpath}; then
|
if ! test -e ${cfg.dbpath}; then
|
||||||
install -d -m0700 -o ${cfg.user} ${cfg.dbpath}
|
install -d -m0700 -o ${cfg.user} ${cfg.dbpath}
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user